Add GetCollapsible() accessor to BSplitView/Layout.
This commit is contained in:
parent
35632c56af
commit
6d16dcfa0c
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user