X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbuttonwidget.hh;h=0d546f73fc8fc67763fc690e9bf6b0b68a43dcb9;hb=a765df7fa67ec4346179ade2cfb8f337286c88d7;hp=a888a3d5226a48edf39e166f7f5a0b2b39348fdb;hpb=ff3bb7566b76ff28e72e64054908145854b4454d;p=chaz%2Fopenbox diff --git a/src/buttonwidget.hh b/src/buttonwidget.hh index a888a3d5..0d546f73 100644 --- a/src/buttonwidget.hh +++ b/src/buttonwidget.hh @@ -7,21 +7,28 @@ 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); virtual void adjust(); + virtual void update(); + virtual void renderForeground(); virtual void focus();