2 * Copyright 2015, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
7 #include <CardLayout.h>
11 BCardView::BCardView()
13 BView(NULL
, 0, new BCardLayout())
19 BCardView::BCardView(const char* name
)
21 BView(name
, 0, new BCardLayout())
27 BCardView::BCardView(BMessage
* from
)
35 BCardView::~BCardView()
41 BCardView::SetLayout(BLayout
* layout
)
43 if (dynamic_cast<BCardLayout
*>(layout
) == NULL
)
46 BView::SetLayout(layout
);
51 BCardView::CardLayout() const
53 return static_cast<BCardLayout
*>(GetLayout());
58 BCardView::Instantiate(BMessage
* from
)
60 if (validate_instantiation(from
, "BCardView"))
61 return new BCardView(from
);
67 BCardView::Perform(perform_code d
, void* arg
)
69 return BView::Perform(d
, arg
);
73 void BCardView::_ReservedCardView1() {}
74 void BCardView::_ReservedCardView2() {}
75 void BCardView::_ReservedCardView3() {}
76 void BCardView::_ReservedCardView4() {}
77 void BCardView::_ReservedCardView5() {}
78 void BCardView::_ReservedCardView6() {}
79 void BCardView::_ReservedCardView7() {}
80 void BCardView::_ReservedCardView8() {}
81 void BCardView::_ReservedCardView9() {}
82 void BCardView::_ReservedCardView10() {}