acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
list.md (1199B)
1 ```eval_rst 2 .. include:: /header.rst 3 :github_url: |github_link_base|/widgets/extra/list.md 4 ``` 5 # List (lv_list) 6 7 ## Overview 8 The List is basically a rectangle with vertical layout to which Buttons and Texts can be added 9 10 ## Parts and Styles 11 12 **Background** 13 - `LV_PART_MAIN` The main part of the list that uses all the typical background properties 14 - `LV_PART_SCROLLBAR` The scrollbar. See the [Base objects](/widgets/obj) documentation for details. 15 16 **Buttons and Texts** 17 See the [Button](/widgets/core/btn)'s and [Label](/widgets/core/label)'s documentation. 18 19 ## Usage 20 21 ### Buttons 22 `lv_list_add_btn(list, icon, text)` adds a full-width button with an icon - that can be an image or symbol - and a text. 23 24 The text starts to scroll horizontally if it's too long. 25 26 ### Texts 27 `lv_list_add_text(list, text)` adds a text. 28 29 30 ## Events 31 No special events are sent by the List, but sent by the Button as usual. 32 33 Learn more about [Events](/overview/event). 34 35 ## Keys 36 No *Keys* are processed by the object type. 37 38 Learn more about [Keys](/overview/indev). 39 40 ## Example 41 42 ```eval_rst 43 44 .. include:: ../../../examples/widgets/list/index.rst 45 46 ``` 47 48 ## API 49 50 ```eval_rst 51 52 .. doxygenfile:: lv_list.h 53 :project: lvgl 54 55 ```