* Added new BView variant of the BLayoutBuilder::Group() constructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36716 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -56,6 +56,9 @@ public:
|
|||||||
inline Group(BWindow* window,
|
inline Group(BWindow* window,
|
||||||
enum orientation orientation = B_HORIZONTAL,
|
enum orientation orientation = B_HORIZONTAL,
|
||||||
float spacing = 0.0f);
|
float spacing = 0.0f);
|
||||||
|
inline Group(BView* window,
|
||||||
|
enum orientation orientation = B_HORIZONTAL,
|
||||||
|
float spacing = 0.0f);
|
||||||
inline Group(BGroupLayout* layout);
|
inline Group(BGroupLayout* layout);
|
||||||
inline Group(BGroupView* view);
|
inline Group(BGroupView* view);
|
||||||
|
|
||||||
@@ -246,6 +249,16 @@ Group<ParentBuilder>::Group(BWindow* window, enum orientation orientation,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<typename ParentBuilder>
|
||||||
|
Group<ParentBuilder>::Group(BView* view, enum orientation orientation,
|
||||||
|
float spacing)
|
||||||
|
:
|
||||||
|
fLayout((new BGroupView(orientation, spacing))->GroupLayout())
|
||||||
|
{
|
||||||
|
view->SetLayout(fLayout);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<typename ParentBuilder>
|
template<typename ParentBuilder>
|
||||||
Group<ParentBuilder>::Group(BGroupLayout* layout)
|
Group<ParentBuilder>::Group(BGroupLayout* layout)
|
||||||
:
|
:
|
||||||
|
|||||||
Reference in New Issue
Block a user