]> icculus.org git repositories - mikachu/openbox.git/blob - src/widget.hh
can tell where events are coming from!
[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   };
23
24 private:
25   WidgetType _type;
26
27 public:
28   OBWidget(WidgetType type) : _type(type) {}
29   
30   inline WidgetType type() const { return _type; }
31 };
32
33 }
34
35 #endif // __obwidget_hh