diff options
Diffstat (limited to 'src/FbTk/Button.hh')
-rw-r--r-- | src/FbTk/Button.hh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/FbTk/Button.hh b/src/FbTk/Button.hh index 4b2ef8b..afad9e1 100644 --- a/src/FbTk/Button.hh +++ b/src/FbTk/Button.hh | |||
@@ -32,19 +32,17 @@ | |||
32 | #include "Color.hh" | 32 | #include "Color.hh" |
33 | #include "Text.hh" | 33 | #include "Text.hh" |
34 | 34 | ||
35 | #include <X11/Xlib.h> | ||
36 | |||
37 | namespace FbTk { | 35 | namespace FbTk { |
38 | 36 | ||
39 | class Theme; | 37 | class Theme; |
40 | 38 | ||
41 | class Button:public FbTk::FbWindow, public EventHandler, | 39 | class Button:public FbTk::FbWindow, public EventHandler, |
42 | private NotCopyable { | 40 | private NotCopyable { |
43 | public: | 41 | public: |
44 | Button(int screen_num, int x, int y, unsigned int width, unsigned int height); | 42 | Button(int screen_num, int x, int y, unsigned int width, unsigned int height); |
45 | Button(const FbWindow &parent, int x, int y, unsigned int width, unsigned int height); | 43 | Button(const FbWindow &parent, int x, int y, unsigned int width, unsigned int height); |
46 | virtual ~Button(); | 44 | virtual ~Button(); |
47 | 45 | ||
48 | /// sets action when the button is clicked with #button mouse btn | 46 | /// sets action when the button is clicked with #button mouse btn |
49 | void setOnClick(RefCount<Command> &com, int button = 1); | 47 | void setOnClick(RefCount<Command> &com, int button = 1); |
50 | 48 | ||