7 #ifndef __MYGUI_BUTTON_H__
8 #define __MYGUI_BUTTON_H__
29 void setStateSelected(
bool _value);
31 bool getStateSelected() const;
37 void setModeImage(
bool _value);
39 bool getModeImage() const;
41 void setImageResource(const std::
string& _name);
43 void setImageGroup(const std::
string& _name);
45 void setImageName(const std::
string& _name);
48 void _setMouseFocus(
bool _focus);
53 virtual
void initialiseOverride();
54 virtual
void shutdownOverride();
56 virtual
void onMouseLostFocus(
Widget* _new);
57 virtual
void onMouseSetFocus(
Widget* _old);
58 virtual
void onMouseButtonPressed(
int _left,
int _top,
MouseButton _id);
59 virtual
void onMouseButtonReleased(
int _left,
int _top,
MouseButton _id);
61 virtual
void baseUpdateEnable();
63 bool _setState(const std::
string& _value);
65 virtual
void setPropertyOverride(const std::
string& _key, const std::
string& _value);
68 void updateButtonState();
84 #endif // __MYGUI_BUTTON_H__