Made AncestorsVisible() const.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
|||||||
int32 IndexOfItem(const BLayoutItem* item) const;
|
int32 IndexOfItem(const BLayoutItem* item) const;
|
||||||
int32 IndexOfView(BView* child) const;
|
int32 IndexOfView(BView* child) const;
|
||||||
|
|
||||||
bool AncestorsVisible();
|
bool AncestorsVisible() const;
|
||||||
|
|
||||||
// Layouting related methods
|
// Layouting related methods
|
||||||
|
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ BLayout::IndexOfView(BView* child) const
|
|||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BLayout::AncestorsVisible()
|
BLayout::AncestorsVisible() const
|
||||||
{
|
{
|
||||||
return fAncestorsVisible;
|
return fAncestorsVisible;
|
||||||
}
|
}
|
||||||
@@ -286,7 +286,7 @@ BLayout::InvalidateLayout(bool children)
|
|||||||
|
|
||||||
if (children) {
|
if (children) {
|
||||||
for (int32 i = CountItems() - 1; i >= 0; i--)
|
for (int32 i = CountItems() - 1; i >= 0; i--)
|
||||||
ItemAt(i)->InvalidateLayout(children);
|
ItemAt(i)->InvalidateLayout(children);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fOwner && BView::Private(fOwner).MinMaxValid())
|
if (fOwner && BView::Private(fOwner).MinMaxValid())
|
||||||
@@ -366,7 +366,7 @@ BLayout::Relayout(bool immediate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BLayout::_LayoutWithinContext(bool force, BLayoutContext* context)
|
BLayout::_LayoutWithinContext(bool force, BLayoutContext* context)
|
||||||
{
|
{
|
||||||
@@ -392,7 +392,7 @@ BLayout::_LayoutWithinContext(bool force, BLayoutContext* context)
|
|||||||
// already been triggered).
|
// already been triggered).
|
||||||
int32 nestedLayoutCount = fNestedLayouts.CountItems();
|
int32 nestedLayoutCount = fNestedLayouts.CountItems();
|
||||||
for (int32 i = 0; i < nestedLayoutCount; i++) {
|
for (int32 i = 0; i < nestedLayoutCount; i++) {
|
||||||
BLayout* layout = (BLayout*)fNestedLayouts.ItemAt(i);
|
BLayout* layout = (BLayout*)fNestedLayouts.ItemAt(i);
|
||||||
if ((layout->fState & B_LAYOUT_NECESSARY) != 0)
|
if ((layout->fState & B_LAYOUT_NECESSARY) != 0)
|
||||||
layout->_LayoutWithinContext(force, context);
|
layout->_LayoutWithinContext(force, context);
|
||||||
}
|
}
|
||||||
@@ -462,7 +462,7 @@ BLayout::AllUnarchived(const BMessage* from)
|
|||||||
err = ItemUnarchived(from, item, i);
|
err = ItemUnarchived(from, item, i);
|
||||||
if (err != B_OK) {
|
if (err != B_OK) {
|
||||||
fItems.RemoveItem(i);
|
fItems.RemoveItem(i);
|
||||||
ItemRemoved(item, i);
|
ItemRemoved(item, i);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user