Add a BObjectList<BLayoutItem> to BView::fLayoutData that keeps track of any BLayoutItems that refer to this view that are part of a layout. BLayoutItem does the registering/deregistering of the items, and BView::Private proxies fLayoutData for us. Currently, this is not used anywhere, but there are many places where it will be used soon.

This commit is contained in:
Alex Wilson
2011-10-28 14:16:07 -06:00
parent edb4c8244c
commit bd97b9adba
4 changed files with 47 additions and 2 deletions
+5
View File
@@ -66,6 +66,11 @@ public:
bool WillLayout();
bool MinMaxValid();
BLayoutItem* LayoutItemAt(int32 index);
int32 CountLayoutItems();
void RegisterLayoutItem(BLayoutItem* item);
void DeregisterLayoutItem(BLayoutItem* item);
bool RemoveSelf()
{
return fView->_RemoveSelf();