tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / interface / GridView.cpp
blob9012f93db21437c620fd87ecf95d3e3b146564a4
1 /*
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.
6 */
9 #include <GridView.h>
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)
31 BView(from)
36 BGridView::~BGridView()
41 void
42 BGridView::SetLayout(BLayout* layout)
44 // only BGridLayouts are allowed
45 if (!dynamic_cast<BGridLayout*>(layout))
46 return;
48 BView::SetLayout(layout);
52 BGridLayout*
53 BGridView::GridLayout() const
55 return dynamic_cast<BGridLayout*>(GetLayout());
59 BArchivable*
60 BGridView::Instantiate(BMessage* from)
62 if (validate_instantiation(from, "BGridView"))
63 return new BGridView(from);
64 return NULL;
68 status_t
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() {}