]> Dogcows Code - chaz/openbox/blobdiff - src/buttonwidget.hh
use otk objects in the ob scripts by importing otk
[chaz/openbox] / src / buttonwidget.hh
index 5a994a9b0a750a91269e56dfb378639e6b9312c1..0d546f73fc8fc67763fc690e9bf6b0b68a43dcb9 100644 (file)
@@ -7,15 +7,20 @@
 
 namespace ob {
 
+class Client;
+
 class ButtonWidget : public otk::Widget, public WidgetBase
 {
 private:
   void setTextures();
+  Client *_client;
   bool _pressed;
   unsigned int _button;
+  bool _state;
   
 public:
-  ButtonWidget(otk::Widget *parent, WidgetBase::WidgetType type);
+  ButtonWidget(otk::Widget *parent, WidgetBase::WidgetType type,
+               Client *client);
   virtual ~ButtonWidget();
 
   virtual void setStyle(otk::RenderStyle *style);
@@ -23,6 +28,7 @@ public:
   virtual void adjust();
 
   virtual void update();
+  
   virtual void renderForeground();
   
   virtual void focus();
This page took 0.020324 seconds and 4 git commands to generate.