summaryrefslogtreecommitdiff
path: root/otk/appwidget.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-16 14:30:18 +0000
committerDana Jansens <danakj@orodu.net>2002-11-16 14:30:18 +0000
commit12a95bfdb31595ec53d72adef4e0fd6bf1ccf218 (patch)
tree5a7fd6a4b2a56e6849ef0fe87b67b5dcc03807ab /otk/appwidget.hh
parent3bc1f37469a4933966f049cc57093fb564b721a3 (diff)
add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display.
Exit when all the "root windows" are hidden. Support the WM_DELETE protocol to hide a "root window".
Diffstat (limited to 'otk/appwidget.hh')
-rw-r--r--otk/appwidget.hh31
1 files changed, 31 insertions, 0 deletions
diff --git a/otk/appwidget.hh b/otk/appwidget.hh
new file mode 100644
index 00000000..d33f2caa
--- /dev/null
+++ b/otk/appwidget.hh
@@ -0,0 +1,31 @@
+#ifndef __appwidget_hh
+#define __appwidget_hh
+
+#include "widget.hh"
+
+namespace otk {
+
+class OtkApplication;
+
+class OtkAppWidget : public OtkWidget {
+
+public:
+ OtkAppWidget(OtkApplication *app, Direction direction = Horizontal,
+ Cursor cursor = 0, int bevel_width = 1);
+ virtual ~OtkAppWidget();
+
+ virtual void show(void);
+ virtual void hide(void);
+
+ virtual void clientMessageHandler(const XClientMessageEvent &e);
+
+private:
+
+ OtkApplication *_application;
+ Atom _wm_protocols;
+ Atom _wm_delete;
+};
+
+}
+
+#endif // __appwidget_hh