Home
last modified time | relevance | path

Searched refs:list1 (Results 1 – 6 of 6) sorted by relevance

/lvgl-3.7.0/examples/widgets/list/
Dlv_example_list_1.c3 static lv_obj_t * list1; variable
10 LV_LOG_USER("Clicked: %s", lv_list_get_btn_text(list1, obj)); in event_handler()
17 list1 = lv_list_create(lv_scr_act()); in lv_example_list_1()
18 lv_obj_set_size(list1, 180, 220); in lv_example_list_1()
19 lv_obj_center(list1); in lv_example_list_1()
24 lv_list_add_text(list1, "File"); in lv_example_list_1()
25 btn = lv_list_add_btn(list1, LV_SYMBOL_FILE, "New"); in lv_example_list_1()
27 btn = lv_list_add_btn(list1, LV_SYMBOL_DIRECTORY, "Open"); in lv_example_list_1()
29 btn = lv_list_add_btn(list1, LV_SYMBOL_SAVE, "Save"); in lv_example_list_1()
31 btn = lv_list_add_btn(list1, LV_SYMBOL_CLOSE, "Delete"); in lv_example_list_1()
[all …]
Dlv_example_list_1.py5 print("Clicked: list1." + list1.get_btn_text(obj))
8 list1 = lv.list(lv.scr_act()) variable
9 list1.set_size(180, 220)
10 list1.center()
13 list1.add_text("File")
14 btn_new = list1.add_btn(lv.SYMBOL.FILE, "New")
16 btn_open = list1.add_btn(lv.SYMBOL.DIRECTORY, "Open")
18 btn_save = list1.add_btn(lv.SYMBOL.SAVE, "Save")
20 btn_delete = list1.add_btn(lv.SYMBOL.CLOSE, "Delete")
22 btn_edit = list1.add_btn(lv.SYMBOL.EDIT, "Edit")
[all …]
Dtest.py8 print("Clicked: list1." + list1.get_btn_text(obj))
11 list1 = lv.list(lv.scr_act()) variable
12 list1.set_size(180, 220)
13 list1.center()
16 list1.add_text("File")
17 btn_new = list1.add_btn(lv.SYMBOL.FILE, "New")
19 btn_open = list1.add_btn(lv.SYMBOL.DIRECTORY, "Open")
21 btn_save = list1.add_btn(lv.SYMBOL.SAVE, "Save")
23 btn_delete = list1.add_btn(lv.SYMBOL.CLOSE, "Delete")
25 btn_edit = list1.add_btn(lv.SYMBOL.EDIT, "Edit")
[all …]
Dlv_example_list_2.c6 static lv_obj_t * list1; variable
16 LV_LOG_USER("Clicked: %s", lv_list_get_btn_text(list1, obj)); in event_handler()
102 uint32_t cnt = lv_obj_get_child_cnt(list1); in event_handler_swap()
105 lv_obj_t * obj = lv_obj_get_child(list1, rand() % cnt); in event_handler_swap()
117 list1 = lv_list_create(lv_scr_act()); in lv_example_list_2()
118 lv_obj_set_size(list1, lv_pct(60), lv_pct(100)); in lv_example_list_2()
119 lv_obj_set_style_pad_row(list1, 5, 0); in lv_example_list_2()
125 btn = lv_btn_create(list1); in lv_example_list_2()
134 currentButton = lv_obj_get_child(list1, 0); in lv_example_list_2()
Dlv_example_list_2.py4 list1 = None variable
81 global list1
85 cnt = list1.get_child_cnt()
88 obj = list1.get_child(urandom.getrandbits(32) % cnt )
94 list1 = lv.list(lv.scr_act()) variable
95 list1.set_size(lv.pct(60), lv.pct(100))
96 list1.set_style_pad_row( 5, 0)
99 btn = lv.btn(list1)
106 currentButton = list1.get_child(0)
/lvgl-3.7.0/examples/others/gridnav/
Dlv_example_gridnav_2.c12 lv_obj_t * list1 = lv_list_create(lv_scr_act()); in lv_example_gridnav_2() local
13 lv_gridnav_add(list1, LV_GRIDNAV_CTRL_NONE); in lv_example_gridnav_2()
14 lv_obj_set_size(list1, lv_pct(45), lv_pct(80)); in lv_example_gridnav_2()
15 lv_obj_align(list1, LV_ALIGN_LEFT_MID, 5, 0); in lv_example_gridnav_2()
16 lv_obj_set_style_bg_color(list1, lv_palette_lighten(LV_PALETTE_BLUE, 5), LV_STATE_FOCUSED); in lv_example_gridnav_2()
17 lv_group_add_obj(lv_group_get_default(), list1); in lv_example_gridnav_2()
23 lv_obj_t * item = lv_list_add_btn(list1, LV_SYMBOL_FILE, buf); in lv_example_gridnav_2()