diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-16 14:30:18 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-16 14:30:18 +0000 |
| commit | 12a95bfdb31595ec53d72adef4e0fd6bf1ccf218 (patch) | |
| tree | 5a7fd6a4b2a56e6849ef0fe87b67b5dcc03807ab /otk/widget.hh | |
| parent | 3bc1f37469a4933966f049cc57093fb564b721a3 (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/widget.hh')
| -rw-r--r-- | otk/widget.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/otk/widget.hh b/otk/widget.hh index fb3b1e37..cbf2f9c5 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -8,7 +8,7 @@ #include "point.hh" #include "texture.hh" #include "style.hh" -#include "eventhandler.hh" +#include "eventdispatcher.hh" #include "application.hh" namespace otk { @@ -22,17 +22,16 @@ public: typedef std::list<OtkWidget *> OtkWidgetList; OtkWidget(OtkWidget *parent, Direction = Horizontal); - OtkWidget(OtkApplication *app, Direction direction = Horizontal, - Cursor cursor = 0, int bevel_width = 1); - OtkWidget(Style *style, Direction direction = Horizontal, - Cursor cursor = 0, int bevel_width = 1); + OtkWidget(OtkEventDispatcher *event_dispatcher, Style *style, + Direction direction = Horizontal, Cursor cursor = 0, + int bevel_width = 1); virtual ~OtkWidget(); virtual void update(void); - int exposeHandler(const XExposeEvent &e); - int configureHandler(const XConfigureEvent &e); + void exposeHandler(const XExposeEvent &e); + void configureHandler(const XConfigureEvent &e); inline Window getWindow(void) const { return _window; } inline const OtkWidget *getParent(void) const { return _parent; } @@ -144,6 +143,7 @@ private: bool _fixed_height; OtkEventDispatcher *_event_dispatcher; + OtkApplication *_application; }; } |
