make the root window an obwidget type
[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_Frame,
11     Type_Titlebar,
12     Type_Handle,
13     Type_Plate,
14     Type_Label,
15     Type_MaximizeButton,
16     Type_CloseButton,
17     Type_IconifyButton,
18     Type_StickyButton,
19     Type_LeftGrip,
20     Type_RightGrip,
21     Type_Client,
22     Type_Root
23   };
24
25 private:
26   WidgetType _type;
27
28 public:
29   OBWidget(WidgetType type) : _type(type) {}
30   
31   inline WidgetType type() const { return _type; }
32 };
33
34 }
35
36 #endif // __obwidget_hh