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 the the Spinner.

Learn more about Events.

Keys

No Keys are processed by the object type.

Learn more about Keys.

Example

C

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_scr_act(), 1000, 60);
    lv_obj_set_size(spinner, 100, 100);
    lv_obj_center(spinner);
}

#endif

MicroPython

API

Functions

lv_obj_t *lv_spinner_create(lv_obj_t *parent, uint32_t time, uint32_t arc_length)

Variables

const lv_obj_class_t lv_spinner_class