kick
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
kick::ToggleButton Class Reference
Inheritance diagram for kick::ToggleButton:
kick::Button kick::Sprite kick::SpriteMouseListener kick::Component2D kick::Component

List of all members.

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*){}

Detailed Description

Definition at line 21 of file toggle_button.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables