2021-04-12 18:19:04 +02:00
```eval_rst
.. include:: /header.rst
2021-05-19 13:51:22 +02:00
:github_url: |github_link_base|/widgets/extra/spinner.md
2021-04-12 18:19:04 +02:00
```
# Spinner (lv_spinner)
## Overview
2021-05-19 13:51:22 +02: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-05-19 13:51:22 +02:00
To create spinner use `lv_spinner_create(parent, spin_time, arc_length)` . `spin time` set 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-05-19 13:51:22 +02:00
No special events are sent the the Spinner.
Learn more about [Events ](/overview/events ).
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
```
## API
```eval_rst
.. doxygenfile:: lv_spinner.h
:project: lvgl
```