xref: /haiku/headers/os/interface/GroupView.h (revision 4b7e219688450694efc9d1890f83f816758c16d3)
1 /*
2  * Copyright 2006-2010, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef	_GROUP_VIEW_H
6 #define	_GROUP_VIEW_H
7 
8 
9 #include <GroupLayout.h>
10 #include <View.h>
11 
12 
13 class BGroupView : public BView {
14 public:
15 								BGroupView(
16 									orientation orientation = B_HORIZONTAL,
17 									float spacing = B_USE_DEFAULT_SPACING);
18 								BGroupView(const char* name,
19 									orientation orientation = B_HORIZONTAL,
20 									float spacing = B_USE_DEFAULT_SPACING);
21 								BGroupView(BMessage* from);
22 	virtual						~BGroupView();
23 
24 	virtual	void				SetLayout(BLayout* layout);
25 			BGroupLayout*		GroupLayout() const;
26 
27 	static	BArchivable*		Instantiate(BMessage* from);
28 
29 	virtual	status_t			Perform(perform_code d, void* arg);
30 
31 private:
32 
33 	// FBC padding
34 	virtual	void				_ReservedGroupView1();
35 	virtual	void				_ReservedGroupView2();
36 	virtual	void				_ReservedGroupView3();
37 	virtual	void				_ReservedGroupView4();
38 	virtual	void				_ReservedGroupView5();
39 	virtual	void				_ReservedGroupView6();
40 	virtual	void				_ReservedGroupView7();
41 	virtual	void				_ReservedGroupView8();
42 	virtual	void				_ReservedGroupView9();
43 	virtual	void				_ReservedGroupView10();
44 
45 	// forbidden methods
46 								BGroupView(const BGroupView&);
47 			void				operator =(const BGroupView&);
48 
49 			uint32				_reserved[2];
50 };
51 
52 
53 #endif	// _GROUP_VIEW_H
54