ToggleButton

Categoryrefcounted
Typehime_toggle_button_t
InheritsButton

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_t

Methods

void hime_toggle_button_set_on_off(self, is_on)

Change the button state.

Parameters

Return

void

void hime_toggle_button_set_on_off_animated(self, is_on)

Change the button state with animation.

Parameters

Return

void

bool hime_toggle_button_is_on(self)

Return the button state.

Parameters

Return

bool