2 * Copyright 2010 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
))
16 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR
));
20 BGroupView::BGroupView(const char* name
, orientation orientation
,
23 BView(name
, 0, new BGroupLayout(orientation
, spacing
))
25 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR
));
29 BGroupView::BGroupView(BMessage
* from
)
36 BGroupView::~BGroupView()
42 BGroupView::SetLayout(BLayout
* layout
)
44 // only BGroupLayouts are allowed
45 if (!dynamic_cast<BGroupLayout
*>(layout
))
48 BView::SetLayout(layout
);
53 BGroupView::Instantiate(BMessage
* from
)
55 if (validate_instantiation(from
, "BGroupView"))
56 return new BGroupView(from
);
63 BGroupView::GroupLayout() const
65 return dynamic_cast<BGroupLayout
*>(GetLayout());
70 BGroupView::Perform(perform_code code
, void* _data
)
72 return BView::Perform(code
, _data
);
76 void BGroupView::_ReservedGroupView1() {}
77 void BGroupView::_ReservedGroupView2() {}
78 void BGroupView::_ReservedGroupView3() {}
79 void BGroupView::_ReservedGroupView4() {}
80 void BGroupView::_ReservedGroupView5() {}
81 void BGroupView::_ReservedGroupView6() {}
82 void BGroupView::_ReservedGroupView7() {}
83 void BGroupView::_ReservedGroupView8() {}
84 void BGroupView::_ReservedGroupView9() {}
85 void BGroupView::_ReservedGroupView10() {}