xref: /haiku/headers/libs/alm/Tab.h (revision a25ffa4f046fb495c316d29f0645bd00c82751c8)
1 /*
2  * Copyright 2006 - 2010, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef	X_TAB_H
6 #define	X_TAB_H
7 
8 
9 #include <Referenceable.h>
10 
11 #include "Variable.h"
12 
13 
14 namespace BALM {
15 
16 
17 class BALMLayout;
18 
19 
20 /**
21  * Vertical grid line (x-tab).
22  */
23 class XTab : public Variable, public BReferenceable {
24 public:
25 	virtual						~XTab();
26 
27 protected:
28 	friend	class				BALMLayout;
29 								XTab(BALMLayout* layout);
30 
31 private:
32 			BALMLayout*			fALMLayout;
33 };
34 
35 
36 class YTab : public Variable, public BReferenceable {
37 public:
38 	virtual						~YTab();
39 
40 protected:
41 	friend	class				BALMLayout;
42 								YTab(BALMLayout* layout);
43 
44 private:
45 			BALMLayout*			fALMLayout;
46 };
47 
48 
49 }	// namespace BALM
50 
51 
52 using BALM::XTab;
53 using BALM::YTab;
54 
55 typedef BObjectList<XTab> XTabList;
56 typedef BObjectList<YTab> YTabList;
57 
58 
59 #endif	// X_TAB_H
60