xref: /haiku/headers/os/interface/AbstractLayoutItem.h (revision 8151838e3892d0a18d89d73e2cc37e1f5d01264d)
1 /*
2  * Copyright 2006, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef	_ABSTRACT_LAYOUT_ITEM_H
6 #define	_ABSTRACT_LAYOUT_ITEM_H
7 
8 #include <Alignment.h>
9 #include <LayoutItem.h>
10 #include <Size.h>
11 
12 
13 class BAbstractLayoutItem : public BLayoutItem {
14 public:
15 								BAbstractLayoutItem();
16 								BAbstractLayoutItem(BMessage* from);
17 	virtual						~BAbstractLayoutItem();
18 
19 	virtual	BSize				MinSize();
20 	virtual	BSize				MaxSize();
21 	virtual	BSize				PreferredSize();
22 	virtual	BAlignment			Alignment();
23 
24 	virtual	void				SetExplicitMinSize(BSize size);
25 	virtual	void				SetExplicitMaxSize(BSize size);
26 	virtual	void				SetExplicitPreferredSize(BSize size);
27 	virtual	void				SetExplicitAlignment(BAlignment alignment);
28 
29 	virtual	BSize				BaseMinSize();
30 	virtual	BSize				BaseMaxSize();
31 	virtual	BSize				BasePreferredSize();
32 	virtual	BAlignment			BaseAlignment();
33 
34 	virtual status_t			Archive(BMessage* into, bool deep = true) const;
35 
36 	virtual	status_t			Perform(perform_code d, void* arg);
37 
38 private:
39 	virtual	void				_ReservedAbstractLayoutItem1();
40 	virtual	void				_ReservedAbstractLayoutItem2();
41 	virtual	void				_ReservedAbstractLayoutItem3();
42 	virtual	void				_ReservedAbstractLayoutItem4();
43 	virtual	void				_ReservedAbstractLayoutItem5();
44 	virtual	void				_ReservedAbstractLayoutItem6();
45 	virtual	void				_ReservedAbstractLayoutItem7();
46 	virtual	void				_ReservedAbstractLayoutItem8();
47 	virtual	void				_ReservedAbstractLayoutItem9();
48 	virtual	void				_ReservedAbstractLayoutItem10();
49 
50 			BSize				fMinSize;
51 			BSize				fMaxSize;
52 			BSize				fPreferredSize;
53 			BAlignment			fAlignment;
54 
55 			uint32				_reserved[5];
56 };
57 
58 #endif	//	_ABSTRACT_LAYOUT_ITEM_H
59