]> Dogcows Code - chaz/openbox/blobdiff - otk/widget.hh
some cleanups
[chaz/openbox] / otk / widget.hh
index 6c122a1d46fc6f3ff3806dc589402385c9495834..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,12 +101,14 @@ 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; }
   void setEventDispatcher(OtkEventDispatcher *disp);
 
+  void unmanaged(void) { _unmanaged = true; }
+
 protected:
   
   bool _dirty;
@@ -146,6 +152,8 @@ private:
   bool _fixed_width;
   bool _fixed_height;
 
+  bool _unmanaged;
+
   OtkEventDispatcher *_event_dispatcher;
   OtkApplication *_application;
 };
This page took 0.025069 seconds and 4 git commands to generate.