28#define CMDFX_BUTTON_TYPE_SWITCH 1
Represents a sprite that can be drawn to the terminal.
Definition sprites.h:30
bool Switch_getState(CmdFX_Button *button)
Gets the state of the switch button.
CmdFX_Button * Button_createSwitch(CmdFX_Sprite *sprite, CmdFX_ButtonCallback callback, bool state)
Creates a switch button.
int Switch_setState(CmdFX_Button *button, bool state)
Sets the state of the switch button.
int Switch_toggleState(CmdFX_Button *button)
Toggles the state of the switch button.
CmdFX_Button * Button_createSwitchWith(char **on, char **off, char ***ansiOn, char ***ansiOff, CmdFX_ButtonCallback callback, bool state)
Creates a switch button with the given on and off states.