Add BLayoutItem::LayoutInvalidated() hook. Leave BLayoutItem::InvalidateLayout() (and therefore BLayout::InvalidateLayout()) virtual. This is needed to let BLayout override it for invalidation propagations.

This commit is contained in:
Alex Wilson
2011-10-28 14:16:52 -06:00
parent 61eb1f1d19
commit c74faed432
5 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ public:
// Layouting related methods
void InvalidateLayout(bool children = false);
virtual void InvalidateLayout(bool children = false);
void Relayout(bool immediate = false);
void RequireLayout();
bool IsValid();
+2 -1
View File
@@ -59,10 +59,11 @@ public:
virtual status_t AllUnarchived(const BMessage* from);
protected:
void SetLayout(BLayout* layout);
// hook methods
virtual void LayoutInvalidated(bool children);
virtual void AttachedToLayout();
virtual void DetachedFromLayout(BLayout* layout);