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