lv_spinner.h

API reference for lv_spinner.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_spinner_private.h

Functions

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)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a spinner
tuint32_tthe animation time in milliseconds
angleuint32_tthe angle of the arc in degrees

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)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a spinner
tuint32_tthe animation time in milliseconds

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)
Parameters
NameTypeDescription
objlv_obj_t *pointer to a spinner
angleuint32_tthe angle of the arc in degrees

Enums

_lv_property_spinner_id_t

NameValue
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

lv_spinner_class

 
const lv_obj_class_t lv_spinner_class

Dependencies

How is this guide?

Last updated on

On this page