2 * Copyright 2010-2015 Haiku, Inc. All rights reserved.
3 * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
5 * Distributed under the terms of the MIT License.
12 BGroupView::BGroupView(orientation orientation
, float spacing
)
14 BView(NULL
, 0, new BGroupLayout(orientation
, spacing
))
20 BGroupView::BGroupView(const char* name
, orientation orientation
,
23 BView(name
, 0, new BGroupLayout(orientation
, spacing
))
29 BGroupView::BGroupView(BMessage
* from
)
37 BGroupView::~BGroupView()
43 BGroupView::SetLayout(BLayout
* layout
)
45 // only BGroupLayouts are allowed
46 if (!dynamic_cast<BGroupLayout
*>(layout
))
49 BView::SetLayout(layout
);
54 BGroupView::Instantiate(BMessage
* from
)
56 if (validate_instantiation(from
, "BGroupView"))
57 return new BGroupView(from
);
64 BGroupView::GroupLayout() const
66 return dynamic_cast<BGroupLayout
*>(GetLayout());
71 BGroupView::Perform(perform_code code
, void* _data
)
73 return BView::Perform(code
, _data
);
77 void BGroupView::_ReservedGroupView1() {}
78 void BGroupView::_ReservedGroupView2() {}
79 void BGroupView::_ReservedGroupView3() {}
80 void BGroupView::_ReservedGroupView4() {}
81 void BGroupView::_ReservedGroupView5() {}
82 void BGroupView::_ReservedGroupView6() {}
83 void BGroupView::_ReservedGroupView7() {}
84 void BGroupView::_ReservedGroupView8() {}
85 void BGroupView::_ReservedGroupView9() {}
86 void BGroupView::_ReservedGroupView10() {}