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:
Stephan Aßmus
2011-01-01 12:08:49 +00:00
parent 76e9533e9e
commit d1b6305cd9
2 changed files with 33 additions and 0 deletions
+5
View File
@@ -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);
+28
View File
@@ -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)
{