]> Dogcows Code - chaz/openbox/blobdiff - otk/widget.hh
some cleanups
[chaz/openbox] / otk / widget.hh
index 80d269da08e6209025b4af4522bb07b5e615f367..249a4e281262d1c7c0b56038436e4f8447807509 100644 (file)
@@ -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);
 
   inline OtkEventDispatcher *getEventDispatcher(void)
   { return _event_dispatcher; }
This page took 0.020203 seconds and 4 git commands to generate.