X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.hh;h=3427e6814942d5a6ee8092ddb973f29fdb5d55db;hb=d2df40965bbf042e062b65d6adc12bc158d503eb;hp=698e856bd2bf838282bb20bb9547fdeb6c02ac7a;hpb=11f59d7925068357e24ca743c23019f671e6a5d7;p=chaz%2Fopenbox diff --git a/otk/widget.hh b/otk/widget.hh index 698e856b..3427e681 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -34,7 +34,7 @@ public: virtual ~Widget(); - virtual void update(void); + virtual void update(); void exposeHandler(const XExposeEvent &e); void configureHandler(const XConfigureEvent &e); @@ -118,6 +118,9 @@ public: inline RenderStyle *style(void) const { return _style; } virtual void setStyle(RenderStyle *style); + inline long eventMask(void) const { return _event_mask; } + void setEventMask(long e); + inline EventDispatcher *eventDispatcher(void) { return _event_dispatcher; } void setEventDispatcher(EventDispatcher *disp); @@ -167,6 +170,8 @@ protected: bool _fixed_width; bool _fixed_height; + long _event_mask; + Surface *_surface; EventDispatcher *_event_dispatcher;