lv_spinner.h
API reference for lv_spinner.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_spinner_private.h
Summary
Functions
public/widgets/lv_spinner.h:59function
lv_spinner_set_anim_params
Set the animation time and arc length of the spinner The animation is suited for angle values between 180 and 360.
void lv_spinner_set_anim_params(lv_obj_t *obj, uint32_t t, uint32_t angle)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a spinner |
t | uint32_t | the animation time in milliseconds |
angle | uint32_t | the angle of the arc in degrees |
public/widgets/lv_spinner.h:66function
lv_spinner_set_anim_duration
Set the animation time of the spinner
void lv_spinner_set_anim_duration(lv_obj_t *obj, uint32_t t)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a spinner |
t | uint32_t | the animation time in milliseconds |
public/widgets/lv_spinner.h:74function
lv_spinner_set_arc_sweep
Set the animation arc length of the spinner. The animation is suited to values between 180 and 360.
void lv_spinner_set_arc_sweep(lv_obj_t *obj, uint32_t angle)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a spinner |
angle | uint32_t | the angle of the arc in degrees |
public/widgets/lv_spinner.h:81function
lv_spinner_get_anim_duration
Get the animation duration of the spinner
uint32_t lv_spinner_get_anim_duration(lv_obj_t *obj)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a spinner |
Returns: uint32_t — the animation time in milliseconds
public/widgets/lv_spinner.h:88function
lv_spinner_get_arc_sweep
Get the animation arc length of the spinner
uint32_t lv_spinner_get_arc_sweep(lv_obj_t *obj)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a spinner |
Returns: uint32_t — the angle of the arc in degrees
public/widgets/lv_spinner.h:50function
lv_spinner_create
Create a spinner widget
lv_obj_t * lv_spinner_create(lv_obj_t *parent)| Name | Type | Description |
|---|---|---|
parent | lv_obj_t * | pointer to a parent widget May be NULL.. When NULL, the widget is created as a screen on the default display. |
Returns: lv_obj_t * — the created spinner
Enums
_lv_property_spinner_id_t
| Name | Value |
|---|---|
LV_PROPERTY_SPINNER_ANIM_DURATION | (LV_PROPERTY_SPINNER_START + ((int) 0 )) | (( 1 ) << 28 ) |
LV_PROPERTY_SPINNER_ARC_SWEEP | (LV_PROPERTY_SPINNER_START + ((int) 1 )) | (( 1 ) << 28 ) |
LV_PROPERTY_SPINNER_END |
Variables
public/widgets/lv_spinner.h:30variable
lv_spinner_class
const lv_obj_class_t lv_spinner_classDependencies
Indirect dependencies
Last updated on