1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
9 class Button : public Label {
12 Button(Widget *parent);
15 virtual inline bool isPressed() const { return _pressed; }
17 virtual void press(unsigned int mouse_button);
18 virtual void release(unsigned int mouse_button);
20 virtual void buttonPressHandler(const XButtonEvent &e);
21 virtual void buttonReleaseHandler(const XButtonEvent &e);
23 virtual void clickHandler(unsigned int button) {(void)button;}
25 virtual void styleChanged(const RenderStyle &style);
29 unsigned int _mouse_button;