Searched refs:list1 (Results 1 – 6 of 6) sorted by relevance
/lvgl-3.6.0/examples/widgets/list/ |
D | lv_example_list_1.c | 3 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 …]
|
D | lv_example_list_1.py | 5 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 …]
|
D | test.py | 8 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 …]
|
D | lv_example_list_2.c | 7 static lv_obj_t * list1; variable 17 LV_LOG_USER("Clicked: %s", lv_list_get_btn_text(list1, obj)); in event_handler() 103 uint32_t cnt = lv_obj_get_child_cnt(list1); in event_handler_swap() 106 lv_obj_t * obj = lv_obj_get_child(list1, rand() % cnt); in event_handler_swap() 118 list1 = lv_list_create(lv_scr_act()); in lv_example_list_2() 119 lv_obj_set_size(list1, lv_pct(60), lv_pct(100)); in lv_example_list_2() 120 lv_obj_set_style_pad_row(list1, 5, 0); in lv_example_list_2() 126 btn = lv_btn_create(list1); in lv_example_list_2() 135 currentButton = lv_obj_get_child(list1, 0); in lv_example_list_2()
|
D | lv_example_list_2.py | 4 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.6.0/examples/others/gridnav/ |
D | lv_example_gridnav_2.c | 12 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() 24 lv_obj_t * item = lv_list_add_btn(list1, LV_SYMBOL_FILE, buf); in lv_example_gridnav_2()
|