mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
49 lines
793 B
ReStructuredText
49 lines
793 B
ReStructuredText
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 </widgets/arc>`__.
|
|
|
|
Usage
|
|
*****
|
|
|
|
Create a spinner
|
|
----------------
|
|
|
|
To create a spinner use
|
|
:cpp:expr:`lv_spinner_create(parent)`.
|
|
|
|
Using :cpp:expr:`lv_spinner_set_anim_params(spinner, spin_duration, angle)` the duration
|
|
of one revulation and the length of he arc can be customized.
|
|
|
|
Events
|
|
******
|
|
|
|
No special events are sent to the Spinner.
|
|
|
|
See the events of the `Arc </widgets/arc>`__ too.
|
|
|
|
Learn more about :ref:`events`.
|
|
|
|
Keys
|
|
****
|
|
|
|
No *Keys* are processed by the object type.
|
|
|
|
Learn more about :ref:`indev_keys`.
|
|
|
|
Example
|
|
*******
|
|
|
|
.. include:: ../examples/widgets/spinner/index.rst
|
|
|
|
API
|
|
***
|