X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.hh;h=57973e9b35594b553908e0d534630f9326545608;hb=73f7a0bd69607663050f02acf121f40a739d9619;hp=80d269da08e6209025b4af4522bb07b5e615f367;hpb=fb3848450e649a05c0bed84a02bc9ab4e563b5d9;p=chaz%2Fopenbox diff --git a/otk/widget.hh b/otk/widget.hh index 80d269da..57973e9b 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -88,6 +88,10 @@ public: void setStretchableVert(bool s_vert = true) { _stretchable_vert = s_vert; } inline Cursor getCursor(void) const { return _cursor; } + void setCursor(Cursor cursor) { + _cursor = cursor; + XDefineCursor(OBDisplay::display, _window, _cursor); + } inline int getBevelWidth(void) const { return _bevel_width; } void setBevelWidth(int bevel_width) @@ -97,7 +101,7 @@ public: void setDirection(Direction dir) { _direction = dir; } inline Style *getStyle(void) const { return _style; } - void setStyle(Style *style) { assert(style); _style = style; } + virtual void setStyle(Style *style) { assert(style); _style = style; } inline OtkEventDispatcher *getEventDispatcher(void) { return _event_dispatcher; }