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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user