X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbuttonwidget.hh;h=0d546f73fc8fc67763fc690e9bf6b0b68a43dcb9;hb=5face4c6f35172761367f63ac0b6eaf62d84e532;hp=5a994a9b0a750a91269e56dfb378639e6b9312c1;hpb=dd6f90684899e8e26e653af4b2e7e7eab1abf798;p=chaz%2Fopenbox diff --git a/src/buttonwidget.hh b/src/buttonwidget.hh index 5a994a9b..0d546f73 100644 --- a/src/buttonwidget.hh +++ b/src/buttonwidget.hh @@ -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();