use OB Widgets for everything
[mikachu/openbox.git] / src / widget.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef   __obwidget_hh
3 #define   __obwidget_hh
4
5 namespace ob {
6
7 class OBWidget {
8 public:
9   enum WidgetType {
10     Type_Titlebar,
11     Type_Handle,
12     Type_Plate,
13     Type_Label,
14     Type_MaximizeButton,
15     Type_CloseButton,
16     Type_IconifyButton,
17     Type_StickyButton,
18     Type_LeftGrip,
19     Type_RightGrip
20   };
21
22 private:
23   WidgetType _type;
24
25 public:
26   OBWidget(WidgetType type) : _type(type) {}
27   
28   inline WidgetType type() const { return _type; }
29 };
30
31 }
32
33 #endif // __obwidget_hh