* 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:
parent
d2ed47fd9f
commit
7628cd87bf
@ -56,6 +56,9 @@ public:
|
||||
inline Group(BWindow* window,
|
||||
enum orientation orientation = B_HORIZONTAL,
|
||||
float spacing = 0.0f);
|
||||
inline Group(BView* window,
|
||||
enum orientation orientation = B_HORIZONTAL,
|
||||
float spacing = 0.0f);
|
||||
inline Group(BGroupLayout* layout);
|
||||
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>
|
||||
Group<ParentBuilder>::Group(BGroupLayout* layout)
|
||||
:
|
||||
|
Loading…
Reference in New Issue
Block a user