Spinner (lv_spinner)

Overview

The Spinner object is a spinning arc over a ring.

Parts and Styles

The parts are identical to the parts of lv_arc.

Usage

Create a spinner

To create a spinner use lv_spinner_create(parent, spin_time, arc_length). spin time sets the spin time in milliseconds, arc_length sets the length of the spinning arc in degrees.

Events

No special events are sent to the Spinner.

See the events of the Arc too.

Learn more about Events.

Keys

No Keys are processed by the object type.

Learn more about Keys.

Example

Simple spinner

#include "../../lv_examples.h"
#if LV_USE_SPINNER && LV_BUILD_EXAMPLES

void lv_example_spinner_1(void)
{
    /*Create a spinner*/
    lv_obj_t * spinner = lv_spinner_create(lv_screen_active());
    lv_obj_set_size(spinner, 100, 100);
    lv_obj_center(spinner);
    lv_spinner_set_anim_params(spinner, 10000, 200);
}

#endif
# Create a spinner
spinner = lv.spinner(lv.screen_active())
spinner.set_size(100, 100)
spinner.center()



API

lv_spinner.h