ToggleButton
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
.
Category | refcounted |
Type | hime_toggle_button_t |
Inherits | hime_button_t |
Constructors
hime_toggle_button_t hime_toggle_button_create()
Create an ToggleButton.
Return
hime_toggle_button_t
Methods
void hime_toggle_button_set_on_off(self, is_on)
Change the button state.
Parameters
hime_toggle_button_t
selfbool
is_on
Return
void
void hime_toggle_button_set_on_off_animated(self, is_on)
Change the button state with animation.
Parameters
hime_toggle_button_t
selfbool
is_on
Return
void
bool hime_toggle_button_is_on(self)
Return the button state.
Parameters
hime_toggle_button_t
self
Return
bool