lv_spinner.h

Enums

enum _lv_property_spinner_id_t

Values:

enumerator LV_PROPERTY_SPINNER_ANIM_DURATION
enumerator LV_PROPERTY_SPINNER_ARC_SWEEP
enumerator LV_PROPERTY_SPINNER_END

Functions

lv_obj_t *lv_spinner_create(lv_obj_t *parent)

Create a spinner widget

Parameters:

parent – pointer to an object, it will be the parent of the new spinner.

Returns:

the created spinner

void lv_spinner_set_anim_params(lv_obj_t *obj, uint32_t t, uint32_t angle)

Set the animation time and arc length of the spinner The animation is suited for angle values between 180 and 360.

Parameters:
  • obj – pointer to a spinner

  • t – the animation time in milliseconds

  • angle – the angle of the arc in degrees

void lv_spinner_set_anim_duration(lv_obj_t *obj, uint32_t t)

Set the animation time of the spinner

Parameters:
  • obj – pointer to a spinner

  • t – the animation time in milliseconds

void lv_spinner_set_arc_sweep(lv_obj_t *obj, uint32_t angle)

Set the animation arc length of the spinner. The animation is suited to values between 180 and 360.

Parameters:
  • obj – pointer to a spinner

  • angle – the angle of the arc in degrees

uint32_t lv_spinner_get_anim_duration(lv_obj_t *obj)

Get the animation duration of the spinner

Parameters:

obj – pointer to a spinner

Returns:

the animation time in milliseconds

uint32_t lv_spinner_get_arc_sweep(lv_obj_t *obj)

Get the animation arc length of the spinner

Parameters:

obj – pointer to a spinner

Returns:

the angle of the arc in degrees

Variables

const lv_obj_class_t lv_spinner_class