]> Dogcows Code - chaz/openbox/blob - src/buttonwidget.hh
enter/leave and focus events are working beautifully
[chaz/openbox] / src / buttonwidget.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __obbuttonwidget_hh
3 #define __obbuttonwidget_hh
4
5 #include "otk/widget.hh"
6 #include "widget.hh"
7
8 namespace ob {
9
10 class OBButtonWidget : public otk::OtkWidget, public OBWidget
11 {
12 private:
13 void setTextures();
14 bool _pressed;
15 unsigned int _button;
16
17 public:
18 OBButtonWidget(otk::OtkWidget *parent, OBWidget::WidgetType type);
19 virtual ~OBButtonWidget();
20
21 virtual void setStyle(otk::Style *style);
22
23 virtual void adjust();
24
25 virtual void focus();
26 virtual void unfocus();
27
28 virtual void buttonPressHandler(const XButtonEvent &e);
29 virtual void buttonReleaseHandler(const XButtonEvent &e);
30 };
31
32 }
33
34 #endif // __obbuttonwidget_hh
This page took 0.042477 seconds and 4 git commands to generate.