Forward important properties and setters of the private BSplitLayout
in the BSplitView class, related to getting and setting item weights programatically. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40048 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -33,6 +33,11 @@ public:
|
||||
float SplitterSize() const;
|
||||
void SetSplitterSize(float size);
|
||||
|
||||
float ItemWeight(int32 index) const;
|
||||
float ItemWeight(BLayoutItem* item) const;
|
||||
void SetItemWeight(int32 index, float weight,
|
||||
bool invalidateLayout);
|
||||
void SetItemWeight(BLayoutItem* item, float weight);
|
||||
|
||||
void SetCollapsible(bool collapsible);
|
||||
void SetCollapsible(int32 index, bool collapsible);
|
||||
|
||||
@@ -95,6 +95,34 @@ BSplitView::SetSplitterSize(float size)
|
||||
}
|
||||
|
||||
|
||||
float
|
||||
BSplitView::ItemWeight(int32 index) const
|
||||
{
|
||||
return fSplitLayout->ItemWeight(index);
|
||||
}
|
||||
|
||||
|
||||
float
|
||||
BSplitView::ItemWeight(BLayoutItem* item) const
|
||||
{
|
||||
return fSplitLayout->ItemWeight(item);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BSplitView::SetItemWeight(int32 index, float weight, bool invalidateLayout)
|
||||
{
|
||||
fSplitLayout->SetItemWeight(index, weight, invalidateLayout);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BSplitView::SetItemWeight(BLayoutItem* item, float weight)
|
||||
{
|
||||
fSplitLayout->SetItemWeight(item, weight);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BSplitView::SetCollapsible(bool collapsible)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user