Add GetCollapsible() accessor to BSplitView/Layout.

This commit is contained in:
Rene Gollent 2011-11-16 21:43:35 -05:00
parent 35632c56af
commit 6d16dcfa0c
4 changed files with 16 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public:
bool invalidateLayout);
void SetItemWeight(BLayoutItem* item, float weight);
bool GetCollapsible(int32 index) const;
void SetCollapsible(bool collapsible);
void SetCollapsible(int32 index, bool collapsible);
void SetCollapsible(int32 first, int32 last,

View File

@ -462,6 +462,13 @@ BSplitLayout::SetItemWeight(BLayoutItem* item, float weight)
}
bool
BSplitLayout::GetCollapsible(int32 index) const
{
return _ItemLayoutInfo(ItemAt(index))->isCollapsible;
}
void
BSplitLayout::SetCollapsible(bool collapsible)
{

View File

@ -61,6 +61,7 @@ public:
bool invalidateLayout);
void SetItemWeight(BLayoutItem* item, float weight);
bool GetCollapsible(int32 index) const;
void SetCollapsible(bool collapsible);
void SetCollapsible(int32 index, bool collapsible);
void SetCollapsible(int32 first, int32 last,

View File

@ -152,6 +152,13 @@ BSplitView::SetItemWeight(BLayoutItem* item, float weight)
}
bool
BSplitView::GetCollapsible(int32 index) const
{
return fSplitLayout->GetCollapsible(index);
}
void
BSplitView::SetCollapsible(bool collapsible)
{