kick
|
Public Member Functions | |
ToggleButton (GameObject *gameObject, std::shared_ptr< Canvas > canvas) | |
std::shared_ptr < ToggleButtonGroup > | group () |
void | setGroup (std::shared_ptr< ToggleButtonGroup > group) |
bool | selected () |
void | setSelected (bool selectedState) |
void | toggleSelected () |
std::string | selectedSprite () const |
void | setSelectedSprite (std::string const &selectedSprite) |
void | setOnChange (std::function< void(ToggleButton *)> const &onChange) |
Public Attributes | |
std::function< void(ToggleButton *)> const | onChange )() const |
Protected Member Functions | |
virtual void | updateTextureAndTxtColor () |
virtual void | invokeClick () override |
Protected Attributes | |
std::function< void(ToggleButton *) | mOnChange ) = [](Button*){} |
Definition at line 21 of file toggle_button.h.