App:Library:LVGL:docs:Widgets:List (lv list)

提供: robot-jp wiki
ナビゲーションに移動検索に移動

https://docs.lvgl.io/8.2/widgets/extra/list.html#simple-list

List (lv_list)

Overview

英文 自動翻訳

The List is basically a rectangle with vertical layout to which Buttons and Texts can be added

リストは基本的に縦長の長方形で、そこにボタンやテキストを追加することができる
戻る : Previous


Parts and Styles

英文 自動翻訳

Background

  • LV_PART_MAIN The main part of the list that uses all the typical background properties
  • LV_PART_SCROLLBAR The scrollbar. See the Base objects documentation for details.


Buttons and Texts See the Button's and Label's documentation.

背景
  • LV_PART_MAIN 典型的な背景のプロパティをすべて使用するリストの主要部分です。
  • LV_PART_SCROLLBARスクロールバー。詳細は Base objects のドキュメントを参照してください。


ボタンとテキスト Button's and Label's のドキュメントを参照してください。

戻る : Previous


Usage

Buttons

英文 自動翻訳

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.

The text starts to scroll horizontally if it's too long.

lv_list_add_btn(list, icon, text)は、アイコン(画像またはシンボル)とテキストを持つ全幅ボタンを追加します。

テキストは、長すぎると水平方向にスクロールし始めます。

戻る : Previous


Texts

英文 自動翻訳

lv_list_add_text(list, text) adds a text.

lv_list_add_text(list, text) は、テキストを追加します。
戻る : Previous


Events

英文 自動翻訳

No special events are sent by the List, but sent by the Button as usual.

Learn more about Events.

Listによって送信される特殊なイベントはありませんが、通常どおりButtonによって送信されます。

イベントの詳細を確認してください。

戻る : Previous


Keys

英文 自動翻訳

No Keys are processed by the object type.

Learn more about Keys.

オブジェクトタイプによって処理されるキーはありません。

キーの詳細を確認してください。

戻る : Previous


Example

英文 自動翻訳

Simple List

LVGL docs example 087.png

Sorting a List using up and down buttons

LVGL docs example 088.png

戻る : Previous


API

英文 自動翻訳

Functions

lv_obj_t *lv_list_create(lv_obj_t *parent)

lv_obj_t *lv_list_add_text(lv_obj_t *list, const char *txt)

lv_obj_t *lv_list_add_btn(lv_obj_t *list, const char *icon, const char *txt)

const char *lv_list_get_btn_text(lv_obj_t *list, lv_obj_t *btn)

Variables

const lv_obj_class_t lv_list_class


const lv_obj_class_t lv_list_text_class

const lv_obj_class_t lv_list_btn_class

Functions

lv_obj_t *lv_list_create(lv_obj_t *parent)

lv_obj_t *lv_list_add_text(lv_obj_t *list, const char *txt)

lv_obj_t *lv_list_add_btn(lv_obj_t *list, const char *icon, const char *txt)

const char *lv_list_get_btn_text(lv_obj_t *list, lv_obj_t *btn)

Variables

const lv_obj_class_t lv_list_class


const lv_obj_class_t lv_list_text_class

const lv_obj_class_t lv_list_btn_class



戻る : Previous