: OtkFocusLabel(parent), _pressed(false), _pressed_focus_tx(0),
_pressed_unfocus_tx(0), _unpr_focus_tx(0), _unpr_unfocus_tx(0)
{
+ setStyle(getStyle());
+}
+
+OtkButton::~OtkButton()
+{
+}
+
+
+void OtkButton::setStyle(Style *style)
+{
+ OtkFocusLabel::setStyle(style);
+
setTexture(getStyle()->getButtonFocus());
setUnfocusTexture(getStyle()->getButtonUnfocus());
_pressed_focus_tx = getStyle()->getButtonPressedFocus();
_pressed_unfocus_tx = getStyle()->getButtonPressedUnfocus();
}
-OtkButton::~OtkButton()
-{
-}
void OtkButton::press(unsigned int mouse_button)
{
void buttonPressHandler(const XButtonEvent &e);
void buttonReleaseHandler(const XButtonEvent &e);
+ void setStyle(Style *style);
+
private:
bool _pressed;