summaryrefslogtreecommitdiff
path: root/src/widget.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-18 02:28:44 +0000
committerDana Jansens <danakj@orodu.net>2002-12-18 02:28:44 +0000
commit70eb03ad50e1a71fd64c8cb1ebabbff311850553 (patch)
tree0cef2e44f7e97c0d00281df8746e7fb7f2c15f5f /src/widget.hh
parent6bf858e4f4fc19914a36d51546278e6464ec00e0 (diff)
add an OBBackgroundWidget and use it for setting colors so far.
Diffstat (limited to 'src/widget.hh')
-rw-r--r--src/widget.hh26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/widget.hh b/src/widget.hh
new file mode 100644
index 00000000..c82c2862
--- /dev/null
+++ b/src/widget.hh
@@ -0,0 +1,26 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+#ifndef __obwidget_hh
+#define __obwidget_hh
+
+namespace ob {
+
+class OBWidget {
+public:
+ enum WidgetType {
+ Type_Titlebar,
+ Type_Handle,
+ Type_Plate
+ };
+
+private:
+ WidgetType _type;
+
+public:
+ OBWidget(WidgetType type) : _type(type) {}
+
+ inline WidgetType type() const { return _type; }
+};
+
+}
+
+#endif // __obwidget_hh