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 BGridView::BGridView(float horizontalSpacing
, float verticalSpacing
)
14 BView(NULL
, 0, new BGridLayout(horizontalSpacing
, verticalSpacing
))
16 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR
));
20 BGridView::BGridView(const char* name
, float horizontalSpacing
,
21 float verticalSpacing
)
23 BView(name
, 0, new BGridLayout(horizontalSpacing
, verticalSpacing
))
25 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR
));
29 BGridView::BGridView(BMessage
* from
)
36 BGridView::~BGridView()
42 BGridView::SetLayout(BLayout
* layout
)
44 // only BGridLayouts are allowed
45 if (!dynamic_cast<BGridLayout
*>(layout
))
48 BView::SetLayout(layout
);
53 BGridView::GridLayout() const
55 return dynamic_cast<BGridLayout
*>(GetLayout());
60 BGridView::Instantiate(BMessage
* from
)
62 if (validate_instantiation(from
, "BGridView"))
63 return new BGridView(from
);
69 BGridView::Perform(perform_code code
, void* _data
)
71 return BView::Perform(code
, _data
);
75 void BGridView::_ReservedGridView1() {}
76 void BGridView::_ReservedGridView2() {}
77 void BGridView::_ReservedGridView3() {}
78 void BGridView::_ReservedGridView4() {}
79 void BGridView::_ReservedGridView5() {}
80 void BGridView::_ReservedGridView6() {}
81 void BGridView::_ReservedGridView7() {}
82 void BGridView::_ReservedGridView8() {}
83 void BGridView::_ReservedGridView9() {}
84 void BGridView::_ReservedGridView10() {}