]> icculus.org git repositories - mikachu/openbox.git/blob - src/widget.hh
global python scripts. client motion/resizing is all done via python now
[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   // update the enum in openbox.i to match this one
10   enum WidgetType {
11     Type_Frame,
12     Type_Titlebar,
13     Type_Handle,
14     Type_Plate,
15     Type_Label,
16     Type_MaximizeButton,
17     Type_CloseButton,
18     Type_IconifyButton,
19     Type_StickyButton,
20     Type_LeftGrip,
21     Type_RightGrip,
22     Type_Client,
23     Type_Root
24   };
25
26 private:
27   WidgetType _type;
28
29 public:
30   OBWidget(WidgetType type) : _type(type) {}
31   
32   inline WidgetType type() const { return _type; }
33 };
34
35 }
36
37 #endif // __obwidget_hh