]> Dogcows Code - chaz/openbox/blob - src/buttonwidget.hh
include algorthm forstd::find
[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::RenderStyle *style);
22
23 virtual void adjust();
24
25 virtual void update();
26 virtual void renderForeground();
27
28 virtual void focus();
29 virtual void unfocus();
30
31 virtual void buttonPressHandler(const XButtonEvent &e);
32 virtual void buttonReleaseHandler(const XButtonEvent &e);
33 };
34
35 }
36
37 #endif // __buttonwidget_hh
This page took 0.035691 seconds and 4 git commands to generate.