2021-04-12 18:19:04 +02:00
# Spinner (lv_spinner)
## Overview
2022-03-21 18:25:51 +08:00
The Spinner object is a spinning arc over a ring.
2021-04-12 18:19:04 +02:00
## Parts and Styles
2021-05-19 13:51:22 +02:00
The parts are identical to the parts of [lv_arc ](/widgets/core/arc ).
2021-04-12 18:19:04 +02:00
## Usage
2021-05-19 13:51:22 +02:00
### Create a spinner
2021-04-12 18:19:04 +02:00
2021-06-09 15:10:35 +02:00
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.
2021-04-12 18:19:04 +02:00
## Events
2021-08-26 10:52:39 +02:00
No special events are sent to the Spinner.
2021-05-19 13:51:22 +02:00
2021-07-07 16:18:56 +02:00
See the events of the [Arc ](/widgets/core/arc ) too.
2021-05-31 19:42:53 +02:00
Learn more about [Events ](/overview/event ).
2021-04-12 18:19:04 +02:00
## Keys
No *Keys* are processed by the object type.
Learn more about [Keys ](/overview/indev ).
## Example
```eval_rst
2021-05-19 13:51:22 +02:00
.. include:: ../../../examples/widgets/spinner/index.rst
2021-04-12 18:19:04 +02:00
```
2022-03-21 18:25:51 +08:00
## API
2021-04-12 18:19:04 +02:00
```eval_rst
.. doxygenfile:: lv_spinner.h
:project: lvgl
2022-03-21 18:25:51 +08:00
2021-04-12 18:19:04 +02:00
```