lv_slider.h
API reference for lv_slider.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_slider_private.h
Summary
Functions
widgets/slider/lv_slider.h:80function
lv_slider_set_value
Set a new value on the slider
void lv_slider_set_value(lv_obj_t *obj, int32_t value, lv_anim_enable_t anim)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a slider object |
value | int32_t | the new value |
anim | lv_anim_enable_t | LV_ANIM_ON: set the value with an animation; LV_ANIM_OFF: change the value immediately |
widgets/slider/lv_slider.h:88function
lv_slider_set_start_value
Set a new value for the left knob of a slider
void lv_slider_set_start_value(lv_obj_t *obj, int32_t value, lv_anim_enable_t anim)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a slider object |
value | int32_t | new value |
anim | lv_anim_enable_t | LV_ANIM_ON: set the value with an animation; LV_ANIM_OFF: change the value immediately |
widgets/slider/lv_slider.h:96function
lv_slider_set_range
Set the minimum and the maximum values of a bar
void lv_slider_set_range(lv_obj_t *obj, int32_t min, int32_t max)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to the slider object |
min | int32_t | minimum value |
max | int32_t | maximum value |
widgets/slider/lv_slider.h:103function
lv_slider_set_min_value
Set the minimum values of a bar
void lv_slider_set_min_value(lv_obj_t *obj, int32_t min)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to the slider object |
min | int32_t | minimum value |
widgets/slider/lv_slider.h:110function
lv_slider_set_max_value
Set the maximum values of a bar
void lv_slider_set_max_value(lv_obj_t *obj, int32_t max)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to the slider object |
max | int32_t | maximum value |
widgets/slider/lv_slider.h:117function
lv_slider_set_mode
Set the mode of slider.
void lv_slider_set_mode(lv_obj_t *obj, lv_slider_mode_t mode)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a slider object |
mode | lv_slider_mode_t | the mode of the slider. See lv_slider_mode_t |
widgets/slider/lv_slider.h:124function
lv_slider_set_orientation
Set the orientation of slider.
void lv_slider_set_orientation(lv_obj_t *obj, lv_slider_orientation_t orientation)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a slider object |
orientation | lv_slider_orientation_t | slider orientation from lv_slider_orientation_t |
Enums
lv_slider_mode_t
| Name | Value |
|---|---|
LV_SLIDER_MODE_NORMAL | LV_BAR_MODE_NORMAL |
LV_SLIDER_MODE_SYMMETRICAL | LV_BAR_MODE_SYMMETRICAL |
LV_SLIDER_MODE_RANGE | LV_BAR_MODE_RANGE |
Used by 1 function
lv_slider_set_mode— parammode
lv_slider_orientation_t
| Name | Value |
|---|---|
LV_SLIDER_ORIENTATION_AUTO | LV_BAR_ORIENTATION_AUTO |
LV_SLIDER_ORIENTATION_HORIZONTAL | LV_BAR_ORIENTATION_HORIZONTAL |
LV_SLIDER_ORIENTATION_VERTICAL | LV_BAR_ORIENTATION_VERTICAL |
Used by 1 function
lv_slider_set_orientation— paramorientation
_lv_property_slider_id_t
| Name | Value |
|---|---|
LV_PROPERTY_SLIDER_VALUE | (LV_PROPERTY_SLIDER_START + ((int) 0 )) | (( 1 ) << 28 ) | (( 11 ) << 24 ) |
LV_PROPERTY_SLIDER_LEFT_VALUE | (LV_PROPERTY_SLIDER_START + ((int) 1 )) | (( 1 ) << 28 ) | (( 11 ) << 24 ) |
LV_PROPERTY_SLIDER_RANGE | (LV_PROPERTY_SLIDER_START + ((int) 2 )) | (( 1 ) << 28 ) | (( 1 ) << 24 ) |
LV_PROPERTY_SLIDER_MIN_VALUE | (LV_PROPERTY_SLIDER_START + ((int) 4 )) | (( 1 ) << 28 ) |
LV_PROPERTY_SLIDER_MAX_VALUE | (LV_PROPERTY_SLIDER_START + ((int) 5 )) | (( 1 ) << 28 ) |
LV_PROPERTY_SLIDER_MODE | (LV_PROPERTY_SLIDER_START + ((int) 6 )) | (( 1 ) << 28 ) |
LV_PROPERTY_SLIDER_IS_DRAGGED | (LV_PROPERTY_SLIDER_START + ((int) 7 )) | (( 11 ) << 28 ) |
LV_PROPERTY_SLIDER_IS_SYMMETRICAL | (LV_PROPERTY_SLIDER_START + ((int) 8 )) | (( 11 ) << 28 ) |
LV_PROPERTY_SLIDER_END |
Variables
widgets/slider/lv_slider.h:44variable
lv_slider_class
const lv_obj_class_t lv_slider_classDependencies
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_label.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_property_names.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_observer.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on