X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.hh;h=3427e6814942d5a6ee8092ddb973f29fdb5d55db;hb=59ef3022a4ce0a23e6d54f7d73a2aa77721e9cc9;hp=2b0300939cbcaf988b8bc949b8d4c2e6019555ad;hpb=033e9843bcec8340c9e657fe0f0519f86075424b;p=chaz%2Fopenbox diff --git a/otk/widget.hh b/otk/widget.hh index 2b030093..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); @@ -133,7 +136,7 @@ protected: virtual void adjustVert(void); virtual void internalResize(int width, int height); virtual void render(void); - virtual void renderForeground(void) {} // for overriding + virtual void renderForeground() {} // for overriding Window _window; @@ -167,6 +170,8 @@ protected: bool _fixed_width; bool _fixed_height; + long _event_mask; + Surface *_surface; EventDispatcher *_event_dispatcher;