Slider
Category | refcounted |
Type | hime_slider_t |
Inherits | View |
A bar representing a continuous range of numerical values.
Since Slider does not have any text displayed, an accessible name must be
assigned via SetAccessibleName
method of View
.
Constructors
hime_slider_t hime_slider_create()
Create a new Slider.
Return
hime_slider_t
Methods
void hime_slider_set_value(self, value)
Set slider's value in interval [0, 1].
Parameters
hime_slider_t
selffloat
value
Return
void
float hime_slider_get_value(self)
Return slider's value in interval [0, 1].
Parameters
hime_slider_const_t
self
Return
float
Events
void hime_slider_on_change(slider, new_value, old_value)
Emitted when slider's value is changed by user.
Parameters
hime_slider_t
sliderfloat
new_valuefloat
old_value
Preventable
No.