]> Dogcows Code - chaz/openbox/blob - src/buttonwidget.hh
support net_wm_strut's! nothing to do with them yet however
[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 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 // __obbuttonwidget_hh
This page took 0.033324 seconds and 4 git commands to generate.