Add CountItems() convenience function to BSplitView.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43138 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,6 +35,7 @@ public:
|
|||||||
float SplitterSize() const;
|
float SplitterSize() const;
|
||||||
void SetSplitterSize(float size);
|
void SetSplitterSize(float size);
|
||||||
|
|
||||||
|
int32 CountItems() const;
|
||||||
float ItemWeight(int32 index) const;
|
float ItemWeight(int32 index) const;
|
||||||
float ItemWeight(BLayoutItem* item) const;
|
float ItemWeight(BLayoutItem* item) const;
|
||||||
void SetItemWeight(int32 index, float weight,
|
void SetItemWeight(int32 index, float weight,
|
||||||
|
|||||||
@@ -117,6 +117,13 @@ BSplitView::SetSplitterSize(float size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int32
|
||||||
|
BSplitView::CountItems() const
|
||||||
|
{
|
||||||
|
return fSplitLayout->CountItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
float
|
float
|
||||||
BSplitView::ItemWeight(int32 index) const
|
BSplitView::ItemWeight(int32 index) const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user