1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00
lvgl/docs/widgets/extra/spinner.md

45 lines
806 B
Markdown
Raw Normal View History

# Spinner (lv_spinner)
## Overview
The Spinner object is a spinning arc over a ring.
## Parts and Styles
2021-05-19 13:51:22 +02:00
The parts are identical to the parts of [lv_arc](/widgets/core/arc).
## Usage
2021-05-19 13:51:22 +02:00
### 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
2021-08-26 10:52:39 +02:00
No special events are sent to the Spinner.
2021-05-19 13:51:22 +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).
## 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
```
## API
```eval_rst
.. doxygenfile:: lv_spinner.h
:project: lvgl
```