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