/lvgl-3.7.0/examples/widgets/menu/ |
D | lv_example_menu_3.c | 16 lv_obj_t * cont; in lv_example_menu_3() local 22 cont = lv_menu_cont_create(sub_1_page); in lv_example_menu_3() 23 label = lv_label_create(cont); in lv_example_menu_3() 28 cont = lv_menu_cont_create(sub_2_page); in lv_example_menu_3() 29 label = lv_label_create(cont); in lv_example_menu_3() 34 cont = lv_menu_cont_create(sub_3_page); in lv_example_menu_3() 35 label = lv_label_create(cont); in lv_example_menu_3() 41 cont = lv_menu_cont_create(main_page); in lv_example_menu_3() 42 label = lv_label_create(cont); in lv_example_menu_3() 44 lv_menu_set_load_page_event(menu, cont, sub_1_page); in lv_example_menu_3() [all …]
|
D | lv_example_menu_3.py | 9 cont = lv.menu_cont(sub_page_1) variable 10 label = lv.label(cont) 15 cont = lv.menu_cont(sub_page_2) variable 16 label = lv.label(cont) 21 cont = lv.menu_cont(sub_page_3) variable 22 label = lv.label(cont) 28 cont = lv.menu_cont(main_page) variable 29 label = lv.label(cont) 31 menu.set_load_page_event(cont, sub_page_1) 33 cont = lv.menu_cont(main_page) variable [all …]
|
D | lv_example_menu_4.c | 14 lv_obj_t * cont; in float_btn_event_cb() local 19 cont = lv_menu_cont_create(sub_page); in float_btn_event_cb() 20 label = lv_label_create(cont); in float_btn_event_cb() 23 cont = lv_menu_cont_create(main_page); in float_btn_event_cb() 24 label = lv_label_create(cont); in float_btn_event_cb() 26 lv_menu_set_load_page_event(menu, cont, sub_page); in float_btn_event_cb() 28 lv_obj_scroll_to_view_recursive(cont, LV_ANIM_ON); in float_btn_event_cb() 38 lv_obj_t * cont; in lv_example_menu_4() local 44 cont = lv_menu_cont_create(sub_page); in lv_example_menu_4() 45 label = lv_label_create(cont); in lv_example_menu_4() [all …]
|
D | lv_example_menu_1.c | 11 lv_obj_t * cont; in lv_example_menu_1() local 17 cont = lv_menu_cont_create(sub_page); in lv_example_menu_1() 18 label = lv_label_create(cont); in lv_example_menu_1() 24 cont = lv_menu_cont_create(main_page); in lv_example_menu_1() 25 label = lv_label_create(cont); in lv_example_menu_1() 28 cont = lv_menu_cont_create(main_page); in lv_example_menu_1() 29 label = lv_label_create(cont); in lv_example_menu_1() 32 cont = lv_menu_cont_create(main_page); in lv_example_menu_1() 33 label = lv_label_create(cont); in lv_example_menu_1() 35 lv_menu_set_load_page_event(menu, cont, sub_page); in lv_example_menu_1()
|
D | lv_example_menu_1.py | 8 cont = lv.menu_cont(sub_page) variable 9 label = lv.label(cont) 15 cont = lv.menu_cont(main_page) variable 16 label = lv.label(cont) 19 cont = lv.menu_cont(main_page) variable 20 label = lv.label(cont) 23 cont = lv.menu_cont(main_page) variable 24 label = lv.label(cont) 26 menu.set_load_page_event(cont, sub_page)
|
D | lv_example_menu_2.c | 23 lv_obj_t * cont; in lv_example_menu_2() local 29 cont = lv_menu_cont_create(sub_page); in lv_example_menu_2() 30 label = lv_label_create(cont); in lv_example_menu_2() 36 cont = lv_menu_cont_create(main_page); in lv_example_menu_2() 37 label = lv_label_create(cont); in lv_example_menu_2() 40 cont = lv_menu_cont_create(main_page); in lv_example_menu_2() 41 label = lv_label_create(cont); in lv_example_menu_2() 44 cont = lv_menu_cont_create(main_page); in lv_example_menu_2() 45 label = lv_label_create(cont); in lv_example_menu_2() 47 lv_menu_set_load_page_event(menu, cont, sub_page); in lv_example_menu_2()
|
D | lv_example_menu_2.py | 16 cont = lv.menu_cont(sub_page) variable 17 label = lv.label(cont) 23 cont = lv.menu_cont(main_page) variable 24 label = lv.label(cont) 27 cont = lv.menu_cont(main_page) variable 28 label = lv.label(cont) 31 cont = lv.menu_cont(main_page) variable 32 label = lv.label(cont) 34 menu.set_load_page_event(cont, sub_page)
|
D | lv_example_menu_4.py | 9 cont = lv.menu_cont(sub_page) 10 label = lv.label(cont) 13 cont = lv.menu_cont(main_page) 14 label = lv.label(cont) 16 menu.set_load_page_event(cont, sub_page) 26 cont = lv.menu_cont(sub_page) variable 27 label = lv.label(cont) 33 cont = lv.menu_cont(main_page) variable 34 label = lv.label(cont) 36 menu.set_load_page_event(cont, sub_page)
|
/lvgl-3.7.0/examples/scroll/ |
D | lv_example_scroll_6.c | 6 lv_obj_t * cont = lv_event_get_target(e); in scroll_event_cb() local 9 lv_obj_get_coords(cont, &cont_a); in scroll_event_cb() 12 lv_coord_t r = lv_obj_get_height(cont) * 7 / 10; in scroll_event_cb() 14 uint32_t child_cnt = lv_obj_get_child_cnt(cont); in scroll_event_cb() 16 lv_obj_t * child = lv_obj_get_child(cont, i); in scroll_event_cb() 53 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_scroll_6() local 54 lv_obj_set_size(cont, 200, 200); in lv_example_scroll_6() 55 lv_obj_center(cont); in lv_example_scroll_6() 56 lv_obj_set_flex_flow(cont, LV_FLEX_FLOW_COLUMN); in lv_example_scroll_6() 57 lv_obj_add_event_cb(cont, scroll_event_cb, LV_EVENT_SCROLL, NULL); in lv_example_scroll_6() [all …]
|
D | lv_example_scroll_6.py | 3 cont = e.get_target() 6 cont.get_coords(cont_a) 9 r = cont.get_height() * 7 // 10 11 child_cnt = cont.get_child_cnt() 13 child = cont.get_child(i) 45 cont = lv.obj(lv.scr_act()) variable 46 cont.set_size(200, 200) 47 cont.center() 48 cont.set_flex_flow(lv.FLEX_FLOW.COLUMN) 49 cont.add_event_cb(scroll_event_cb, lv.EVENT.SCROLL, None) [all …]
|
/lvgl-3.7.0/examples/layouts/flex/ |
D | lv_example_flex_3.c | 9 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_flex_3() local 10 lv_obj_set_size(cont, 300, 220); in lv_example_flex_3() 11 lv_obj_center(cont); in lv_example_flex_3() 12 lv_obj_set_flex_flow(cont, LV_FLEX_FLOW_ROW); in lv_example_flex_3() 15 obj = lv_obj_create(cont); in lv_example_flex_3() 18 obj = lv_obj_create(cont); in lv_example_flex_3() 22 obj = lv_obj_create(cont); in lv_example_flex_3() 26 obj = lv_obj_create(cont); in lv_example_flex_3()
|
D | lv_example_flex_3.py | 5 cont = lv.obj(lv.scr_act()) variable 6 cont.set_size(300, 220) 7 cont.center() 8 cont.set_flex_flow(lv.FLEX_FLOW.ROW) 10 obj = lv.obj(cont) 13 obj = lv.obj(cont) 17 obj = lv.obj(cont) 21 obj = lv.obj(cont)
|
D | lv_example_flex_5.py | 12 cont = lv.obj(lv.scr_act()) variable 13 cont.set_size(300, 220) 14 cont.center() 15 cont.set_flex_flow(lv.FLEX_FLOW.ROW_WRAP) 18 obj = lv.obj(cont) 27 a_row.set_var(cont) 33 a_row.set_custom_exec_cb(lambda a,val: row_gap_anim(cont,val)) 38 a_col.set_var(cont) 44 a_col.set_custom_exec_cb(lambda a,val: column_gap_anim(cont,val))
|
D | lv_example_flex_6.c | 10 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_flex_6() local 11 lv_obj_set_style_base_dir(cont, LV_BASE_DIR_RTL, 0); in lv_example_flex_6() 12 lv_obj_set_size(cont, 300, 220); in lv_example_flex_6() 13 lv_obj_center(cont); in lv_example_flex_6() 14 lv_obj_set_flex_flow(cont, LV_FLEX_FLOW_ROW_WRAP); in lv_example_flex_6() 18 lv_obj_t * obj = lv_obj_create(cont); in lv_example_flex_6()
|
D | lv_example_flex_6.py | 6 cont = lv.obj(lv.scr_act()) variable 7 cont.set_style_base_dir(lv.BASE_DIR.RTL,0) 8 cont.set_size(300, 220) 9 cont.center() 10 cont.set_flex_flow(lv.FLEX_FLOW.ROW_WRAP) 13 obj = lv.obj(cont)
|
/lvgl-3.7.0/src/extra/layouts/flex/ |
D | lv_flex.c | 55 static void flex_update(lv_obj_t * cont, void * user_data); 56 static int32_t find_track_end(lv_obj_t * cont, flex_t * f, int32_t item_start_id, lv_coord_t max_ma… 58 static void children_repos(lv_obj_t * cont, flex_t * f, int32_t item_first_id, int32_t item_last_id… 62 static lv_obj_t * get_next_item(lv_obj_t * cont, bool rev, int32_t * item_id); 206 static void flex_update(lv_obj_t * cont, void * user_data) in flex_update() argument 208 LV_LOG_INFO("update %p container", (void *)cont); in flex_update() 212 lv_flex_flow_t flow = lv_obj_get_style_flex_flow(cont, LV_PART_MAIN); in flex_update() 216 f.main_place = lv_obj_get_style_flex_main_place(cont, LV_PART_MAIN); in flex_update() 217 f.cross_place = lv_obj_get_style_flex_cross_place(cont, LV_PART_MAIN); in flex_update() 218 f.track_place = lv_obj_get_style_flex_track_place(cont, LV_PART_MAIN); in flex_update() [all …]
|
/lvgl-3.7.0/src/extra/widgets/tabview/ |
D | lv_tabview.c | 71 lv_obj_t * cont = lv_tabview_get_content(obj); in lv_tabview_add_tab() local 73 lv_obj_t * page = lv_obj_create(cont); in lv_tabview_add_tab() 76 uint32_t tab_id = lv_obj_get_child_cnt(cont); in lv_tabview_add_tab() 152 lv_obj_t * cont = lv_tabview_get_content(obj); in lv_tabview_set_act() local 153 if(cont == NULL) return; in lv_tabview_set_act() 156 lv_coord_t gap = lv_obj_get_style_pad_column(cont, LV_PART_MAIN); in lv_tabview_set_act() 157 lv_coord_t w = lv_obj_get_content_width(cont); in lv_tabview_set_act() 159 lv_obj_scroll_to_x(cont, id * (gap + w), anim_en); in lv_tabview_set_act() 163 lv_obj_scroll_to_x(cont, (gap + w) * id_rtl, anim_en); in lv_tabview_set_act() 167 lv_coord_t gap = lv_obj_get_style_pad_row(cont, LV_PART_MAIN); in lv_tabview_set_act() [all …]
|
/lvgl-3.7.0/examples/event/ |
D | lv_example_event_3.c | 10 lv_obj_t * cont = lv_event_get_current_target(e); in event_cb() local 13 if(target == cont) return; in event_cb() 25 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_event_3() local 26 lv_obj_set_size(cont, 290, 200); in lv_example_event_3() 27 lv_obj_center(cont); in lv_example_event_3() 28 lv_obj_set_flex_flow(cont, LV_FLEX_FLOW_ROW_WRAP); in lv_example_event_3() 32 lv_obj_t * btn = lv_btn_create(cont); in lv_example_event_3() 41 lv_obj_add_event_cb(cont, event_cb, LV_EVENT_CLICKED, NULL); in lv_example_event_3()
|
/lvgl-3.7.0/examples/layouts/grid/ |
D | lv_example_grid_2.c | 13 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_grid_2() local 14 lv_obj_set_grid_dsc_array(cont, col_dsc, row_dsc); in lv_example_grid_2() 15 lv_obj_set_size(cont, 300, 220); in lv_example_grid_2() 16 lv_obj_center(cont); in lv_example_grid_2() 22 obj = lv_obj_create(cont); in lv_example_grid_2() 30 obj = lv_obj_create(cont); in lv_example_grid_2() 38 obj = lv_obj_create(cont); in lv_example_grid_2() 46 obj = lv_obj_create(cont); in lv_example_grid_2() 54 obj = lv_obj_create(cont); in lv_example_grid_2()
|
D | lv_example_grid_1.c | 13 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_grid_1() local 14 lv_obj_set_style_grid_column_dsc_array(cont, col_dsc, 0); in lv_example_grid_1() 15 lv_obj_set_style_grid_row_dsc_array(cont, row_dsc, 0); in lv_example_grid_1() 16 lv_obj_set_size(cont, 300, 220); in lv_example_grid_1() 17 lv_obj_center(cont); in lv_example_grid_1() 18 lv_obj_set_layout(cont, LV_LAYOUT_GRID); in lv_example_grid_1() 28 obj = lv_btn_create(cont); in lv_example_grid_1()
|
D | lv_example_grid_1.py | 9 cont = lv.obj(lv.scr_act()) variable 10 cont.set_style_grid_column_dsc_array(col_dsc, 0) 11 cont.set_style_grid_row_dsc_array(row_dsc, 0) 12 cont.set_size(300, 220) 13 cont.center() 14 cont.set_layout(lv.LAYOUT_GRID.value) 20 obj = lv.btn(cont)
|
D | lv_example_grid_5.py | 16 cont = lv.obj(lv.scr_act()) variable 17 cont.set_size(300, 220) 18 cont.center() 19 cont.set_grid_dsc_array(col_dsc, row_dsc) 25 obj = lv.obj(cont) 34 a_row.set_var(cont) 39 a_row. set_custom_exec_cb(lambda a,val: row_gap_anim(cont,val)) 44 a_col.set_var(cont) 49 a_col. set_custom_exec_cb(lambda a,val: column_gap_anim(cont,val))
|
D | lv_example_grid_2.py | 9 cont = lv.obj(lv.scr_act()) variable 10 cont.set_grid_dsc_array(col_dsc, row_dsc) 11 cont.set_size(300, 220) 12 cont.center() 15 obj = lv.obj(cont) 23 obj = lv.obj(cont) 31 obj = lv.obj(cont) 39 obj = lv.obj(cont) 47 obj = lv.obj(cont)
|
D | lv_example_grid_4.c | 15 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_grid_4() local 16 lv_obj_set_grid_align(cont, LV_GRID_ALIGN_SPACE_BETWEEN, LV_GRID_ALIGN_END); in lv_example_grid_4() 17 lv_obj_set_grid_dsc_array(cont, col_dsc, row_dsc); in lv_example_grid_4() 18 lv_obj_set_size(cont, 300, 220); in lv_example_grid_4() 19 lv_obj_center(cont); in lv_example_grid_4() 28 obj = lv_obj_create(cont); in lv_example_grid_4()
|
D | lv_example_grid_6.c | 14 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_grid_6() local 15 lv_obj_set_size(cont, 300, 220); in lv_example_grid_6() 16 lv_obj_center(cont); in lv_example_grid_6() 17 lv_obj_set_style_base_dir(cont, LV_BASE_DIR_RTL, 0); in lv_example_grid_6() 18 lv_obj_set_grid_dsc_array(cont, col_dsc, row_dsc); in lv_example_grid_6() 27 obj = lv_obj_create(cont); in lv_example_grid_6()
|