ToggleButton
| Category | refcounted |
| Type | hime_toggle_button_t |
| Inherits | Button |
A button that has on/off states.
This is similar to a checkbox but has no text and looks more like a two-state horizontal slider.
Since ToggleButton does not have any text displayed, an accessible name must
be assigned via SetAccessibleName method of View.
Constructors
hime_toggle_button_t hime_toggle_button_create()
Create an ToggleButton.
Return
hime_toggle_button_tMethods
void hime_toggle_button_set_on_off(self, is_on)
Change the button state.
Parameters
hime_toggle_button_tselfboolis_on
Return
voidvoid hime_toggle_button_set_on_off_animated(self, is_on)
Change the button state with animation.
Parameters
hime_toggle_button_tselfboolis_on
Return
voidbool hime_toggle_button_is_on(self)
Return the button state.
Parameters
Return
bool