: OtkFocusLabel(parent), _pressed(false), _pressed_focus_tx(0),
_pressed_unfocus_tx(0), _unpr_focus_tx(0), _unpr_unfocus_tx(0)
{
- setStyle(getStyle());
}
OtkButton::~OtkButton()
{
OtkFocusLabel::setStyle(style);
- setTexture(getStyle()->getButtonFocus());
- setUnfocusTexture(getStyle()->getButtonUnfocus());
- _pressed_focus_tx = getStyle()->getButtonPressedFocus();
- _pressed_unfocus_tx = getStyle()->getButtonPressedUnfocus();
+ setTexture(style->getButtonFocus());
+ setUnfocusTexture(style->getButtonUnfocus());
+ _pressed_focus_tx = style->getButtonPressedFocus();
+ _pressed_unfocus_tx = style->getButtonPressedUnfocus();
}