X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbuttonwidget.hh;h=141b03e4300c7b9bb9668944bcf40431a6ee5c0f;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=bb23dd90ea399ae75f76c4554b4839d1648c8768;hpb=83727b8e6404f7e00e7369c39da8779dfb85ae09;p=chaz%2Fopenbox diff --git a/src/buttonwidget.hh b/src/buttonwidget.hh index bb23dd90..141b03e4 100644 --- a/src/buttonwidget.hh +++ b/src/buttonwidget.hh @@ -2,14 +2,17 @@ #ifndef __obbuttonwidget_hh #define __obbuttonwidget_hh -#include "otk/button.hh" -#include "widget.hh" +#include "widgetbase.hh" +#include "otk/widget.hh" namespace ob { -class OBButtonWidget : public otk::OtkButton, public OBWidget +class OBButtonWidget : public otk::OtkWidget, public OBWidget { private: + void setTextures(); + bool _pressed; + unsigned int _button; public: OBButtonWidget(otk::OtkWidget *parent, OBWidget::WidgetType type); @@ -18,6 +21,14 @@ public: virtual void setStyle(otk::Style *style); virtual void adjust(); + + virtual void update(); + + virtual void focus(); + virtual void unfocus(); + + virtual void buttonPressHandler(const XButtonEvent &e); + virtual void buttonReleaseHandler(const XButtonEvent &e); }; }