/lvgl-3.5.0/examples/scroll/ |
D | lv_example_scroll_1.py | 11 label = lv.label(child) variable 12 label.set_text("Zero") 13 label.center() 17 label = lv.label(child) variable 18 label.set_text("Left") 19 label.center() 23 label = lv.label(child) variable 24 label.set_text("Top") 25 label.center() 29 label = lv.label(child) variable [all …]
|
D | lv_example_scroll_1.c | 15 lv_obj_t * label; in lv_example_scroll_1() local 20 label = lv_label_create(child); in lv_example_scroll_1() 21 lv_label_set_text(label, "Zero"); in lv_example_scroll_1() 22 lv_obj_center(label); in lv_example_scroll_1() 31 label = lv_label_create(child2); in lv_example_scroll_1() 32 lv_label_set_text(label, "Right"); in lv_example_scroll_1() 33 lv_obj_center(label); in lv_example_scroll_1() 38 label = lv_label_create(child); in lv_example_scroll_1() 39 lv_label_set_text(label, "Bottom"); in lv_example_scroll_1() 40 lv_obj_center(label); in lv_example_scroll_1()
|
/lvgl-3.5.0/src/widgets/ |
D | lv_label.c | 44 static void lv_label_revert_dots(lv_obj_t * label); 46 static bool lv_label_set_dot_tmp(lv_obj_t * label, char * data, uint32_t len); 47 static char * lv_label_get_dot_tmp(lv_obj_t * label); 48 static void lv_label_dot_tmp_free(lv_obj_t * label); 88 lv_label_t * label = (lv_label_t *)obj; in lv_label_set_text() local 93 if(text == NULL) text = label->text; in lv_label_set_text() 95 if(label->text == text && label->static_txt == 0) { in lv_label_set_text() 101 label->text = lv_mem_realloc(label->text, len); in lv_label_set_text() 102 LV_ASSERT_MALLOC(label->text); in lv_label_set_text() 103 if(label->text == NULL) return; in lv_label_set_text() [all …]
|
/lvgl-3.5.0/examples/widgets/menu/ |
D | lv_example_menu_3.py | 10 label = lv.label(cont) variable 11 label.set_text("Hello, I am hiding here") 16 label = lv.label(cont) variable 17 label.set_text("Hello, I am hiding here") 22 label = lv.label(cont) variable 23 label.set_text("Hello, I am hiding here") 29 label = lv.label(cont) variable 30 label.set_text("Item 1 (Click me!)") 34 label = lv.label(cont) variable 35 label.set_text("Item 2 (Click me!)") [all …]
|
D | lv_example_menu_1.py | 9 label = lv.label(cont) variable 10 label.set_text("Hello, I am hiding here") 16 label = lv.label(cont) variable 17 label.set_text("Item 1") 20 label = lv.label(cont) variable 21 label.set_text("Item 2") 24 label = lv.label(cont) variable 25 label.set_text("Item 3 (Click me!)")
|
D | lv_example_menu_3.c | 17 lv_obj_t * label; in lv_example_menu_3() local 23 label = lv_label_create(cont); in lv_example_menu_3() 24 lv_label_set_text(label, "Hello, I am hiding here"); in lv_example_menu_3() 29 label = lv_label_create(cont); in lv_example_menu_3() 30 lv_label_set_text(label, "Hello, I am hiding here"); in lv_example_menu_3() 35 label = lv_label_create(cont); in lv_example_menu_3() 36 lv_label_set_text(label, "Hello, I am hiding here"); in lv_example_menu_3() 42 label = lv_label_create(cont); in lv_example_menu_3() 43 lv_label_set_text(label, "Item 1 (Click me!)"); in lv_example_menu_3() 47 label = lv_label_create(cont); in lv_example_menu_3() [all …]
|
D | lv_example_menu_2.py | 17 label = lv.label(cont) variable 18 label.set_text("Hello, I am hiding here") 24 label = lv.label(cont) variable 25 label.set_text("Item 1") 28 label = lv.label(cont) variable 29 label.set_text("Item 2") 32 label = lv.label(cont) variable 33 label.set_text("Item 3 (Click me!)")
|
D | lv_example_menu_4.py | 10 label = lv.label(cont) 11 label.set_text("Hello, I am hiding inside {:d}".format(btn_cnt)) 14 label = lv.label(cont) 15 label.set_text("Item {:d}".format(btn_cnt)) 27 label = lv.label(cont) variable 28 label.set_text("Hello, I am hiding inside the first item") 34 label = lv.label(cont) variable 35 label.set_text("Item 1")
|
D | lv_example_menu_1.c | 12 lv_obj_t * label; in lv_example_menu_1() local 18 label = lv_label_create(cont); in lv_example_menu_1() 19 lv_label_set_text(label, "Hello, I am hiding here"); in lv_example_menu_1() 25 label = lv_label_create(cont); in lv_example_menu_1() 26 lv_label_set_text(label, "Item 1"); in lv_example_menu_1() 29 label = lv_label_create(cont); in lv_example_menu_1() 30 lv_label_set_text(label, "Item 2"); in lv_example_menu_1() 33 label = lv_label_create(cont); in lv_example_menu_1() 34 lv_label_set_text(label, "Item 3 (Click me!)"); in lv_example_menu_1()
|
D | lv_example_menu_4.c | 15 lv_obj_t * label; in float_btn_event_cb() local 20 label = lv_label_create(cont); in float_btn_event_cb() 21 lv_label_set_text_fmt(label, "Hello, I am hiding inside %"LV_PRIu32, btn_cnt); in float_btn_event_cb() 24 label = lv_label_create(cont); in float_btn_event_cb() 25 lv_label_set_text_fmt(label, "Item %"LV_PRIu32, btn_cnt); in float_btn_event_cb() 39 lv_obj_t * label; in lv_example_menu_4() local 45 label = lv_label_create(cont); in lv_example_menu_4() 46 lv_label_set_text(label, "Hello, I am hiding inside the first item"); in lv_example_menu_4() 52 label = lv_label_create(cont); in lv_example_menu_4() 53 lv_label_set_text(label, "Item 1"); in lv_example_menu_4()
|
D | lv_example_menu_2.c | 24 lv_obj_t * label; in lv_example_menu_2() local 30 label = lv_label_create(cont); in lv_example_menu_2() 31 lv_label_set_text(label, "Hello, I am hiding here"); in lv_example_menu_2() 37 label = lv_label_create(cont); in lv_example_menu_2() 38 lv_label_set_text(label, "Item 1"); in lv_example_menu_2() 41 label = lv_label_create(cont); in lv_example_menu_2() 42 lv_label_set_text(label, "Item 2"); in lv_example_menu_2() 45 label = lv_label_create(cont); in lv_example_menu_2() 46 lv_label_set_text(label, "Item 3 (Click me!)"); in lv_example_menu_2()
|
/lvgl-3.5.0/examples/anim/ |
D | lv_example_anim_1.py | 1 def anim_x_cb(label, v): argument 2 label.set_x(v) 4 def sw_event_cb(e,label): argument 10 a.set_var(label) 11 a.set_values(label.get_x(), 100) 14 a.set_custom_exec_cb(lambda a,val: anim_x_cb(label,val)) 19 a.set_var(label) 20 a.set_values(label.get_x(), -label.get_width()) 23 a.set_custom_exec_cb(lambda a,val: anim_x_cb(label,val)) 30 label = lv.label(lv.scr_act()) variable [all …]
|
D | lv_example_anim_1.c | 12 lv_obj_t * label = lv_event_get_user_data(e); in sw_event_cb() local 17 lv_anim_set_var(&a, label); in sw_event_cb() 18 lv_anim_set_values(&a, lv_obj_get_x(label), 100); in sw_event_cb() 27 lv_anim_set_var(&a, label); in sw_event_cb() 28 lv_anim_set_values(&a, lv_obj_get_x(label), -lv_obj_get_width(label)); in sw_event_cb() 42 lv_obj_t * label = lv_label_create(lv_scr_act()); in lv_example_anim_1() local 43 lv_label_set_text(label, "Hello animations!"); in lv_example_anim_1() 44 lv_obj_set_pos(label, 100, 10); in lv_example_anim_1() 50 lv_obj_add_event_cb(sw, sw_event_cb, LV_EVENT_VALUE_CHANGED, label); in lv_example_anim_1()
|
/lvgl-3.5.0/examples/widgets/tabview/ |
D | lv_example_tabview_1.py | 10 label = lv.label(tab1) variable 11 label.set_text("""This the first tab 28 label = lv.label(tab2) variable 29 label.set_text("Second tab") 31 label = lv.label(tab3) variable 32 label.set_text("Third tab"); 34 label.scroll_to_view_recursive(lv.ANIM.ON)
|
D | lv_example_tabview_2.py | 32 label = lv.label(tab1) variable 33 label.set_text("First tab") 35 label = lv.label(tab2) variable 36 label.set_text("Second tab") 38 label = lv.label(tab3) variable 39 label.set_text("Third tab") 41 label = lv.label(tab4) variable 42 label.set_text("Forth tab") 44 label = lv.label(tab5) variable 45 label.set_text("Fifth tab")
|
D | lv_example_tabview_2.c | 39 lv_obj_t * label = lv_label_create(tab1); in lv_example_tabview_2() local 40 lv_label_set_text(label, "First tab"); in lv_example_tabview_2() 42 label = lv_label_create(tab2); in lv_example_tabview_2() 43 lv_label_set_text(label, "Second tab"); in lv_example_tabview_2() 45 label = lv_label_create(tab3); in lv_example_tabview_2() 46 lv_label_set_text(label, "Third tab"); in lv_example_tabview_2() 48 label = lv_label_create(tab4); in lv_example_tabview_2() 49 lv_label_set_text(label, "Forth tab"); in lv_example_tabview_2() 51 label = lv_label_create(tab5); in lv_example_tabview_2() 52 lv_label_set_text(label, "Fifth tab"); in lv_example_tabview_2()
|
D | lv_example_tabview_1.c | 16 lv_obj_t * label = lv_label_create(tab1); in lv_example_tabview_1() local 17 lv_label_set_text(label, "This the first tab\n\n" in lv_example_tabview_1() 33 label = lv_label_create(tab2); in lv_example_tabview_1() 34 lv_label_set_text(label, "Second tab"); in lv_example_tabview_1() 36 label = lv_label_create(tab3); in lv_example_tabview_1() 37 lv_label_set_text(label, "Third tab"); in lv_example_tabview_1() 39 lv_obj_scroll_to_view_recursive(label, LV_ANIM_ON); in lv_example_tabview_1()
|
/lvgl-3.5.0/examples/layouts/grid/ |
D | lv_example_grid_2.py | 19 label = lv.label(obj) variable 20 label.set_text("c0, r0") 27 label = lv.label(obj) variable 28 label.set_text("c1, r0") 35 label = lv.label(obj) variable 36 label.set_text("c2, r0") 43 label = lv.label(obj) variable 44 label.set_text("c1-2, r1") 51 label = lv.label(obj) variable 52 label.set_text("c0\nr1-2")
|
D | lv_example_grid_2.c | 19 lv_obj_t * label; in lv_example_grid_2() local 27 label = lv_label_create(obj); in lv_example_grid_2() 28 lv_label_set_text(label, "c0, r0"); in lv_example_grid_2() 35 label = lv_label_create(obj); in lv_example_grid_2() 36 lv_label_set_text(label, "c1, r0"); in lv_example_grid_2() 43 label = lv_label_create(obj); in lv_example_grid_2() 44 lv_label_set_text(label, "c2, r0"); in lv_example_grid_2() 51 label = lv_label_create(obj); in lv_example_grid_2() 52 lv_label_set_text(label, "c1-2, r1"); in lv_example_grid_2() 59 label = lv_label_create(obj); in lv_example_grid_2() [all …]
|
/lvgl-3.5.0/examples/others/gridnav/ |
D | lv_example_gridnav_3.c | 37 lv_obj_t * label; in lv_example_gridnav_3() local 41 label = lv_label_create(btn); in lv_example_gridnav_3() 42 lv_label_set_text(label, "Button 1"); in lv_example_gridnav_3() 46 label = lv_label_create(btn); in lv_example_gridnav_3() 47 lv_label_set_text(label, "Button 2"); in lv_example_gridnav_3() 54 label = lv_label_create(cont_sub1); in lv_example_gridnav_3() 56 lv_obj_set_width(label, lv_pct(100)); in lv_example_gridnav_3() 57 lv_label_set_text(label, in lv_example_gridnav_3() 82 label = lv_label_create(cont_sub2); in lv_example_gridnav_3() 83 lv_label_set_text(label, "Use ENTER/ESC to focus/defocus this container"); in lv_example_gridnav_3() [all …]
|
/lvgl-3.5.0/examples/styles/ |
D | lv_example_style_15.c | 12 lv_obj_t * label; in lv_example_style_15() local 19 label = lv_label_create(btn); in lv_example_style_15() 20 lv_label_set_text(label, "Normal"); in lv_example_style_15() 21 lv_obj_center(label); in lv_example_style_15() 30 label = lv_label_create(btn); in lv_example_style_15() 31 lv_label_set_text(label, "Opa:50%"); in lv_example_style_15() 32 lv_obj_center(label); in lv_example_style_15() 45 label = lv_label_create(btn); in lv_example_style_15() 46 lv_label_set_text(label, "Transf."); in lv_example_style_15() 47 lv_obj_center(label); in lv_example_style_15()
|
/lvgl-3.5.0/examples/others/msg/ |
D | lv_example_msg_2.c | 40 lv_obj_t * label; in lv_example_msg_2() local 49 label = lv_label_create(btn); in lv_example_msg_2() 50 lv_label_set_text(label, "LOG OUT"); in lv_example_msg_2() 53 label = lv_label_create(lv_scr_act()); in lv_example_msg_2() 54 lv_label_set_text(label, ""); in lv_example_msg_2() 55 lv_obj_add_event_cb(label, info_label_msg_event_cb, LV_EVENT_MSG_RECEIVED, NULL); in lv_example_msg_2() 56 lv_obj_set_pos(label, 10, 60); in lv_example_msg_2() 57 lv_msg_subsribe_obj(MSG_LOGIN_ERROR, label, NULL); in lv_example_msg_2() 58 lv_msg_subsribe_obj(MSG_LOGIN_OK, label, NULL); in lv_example_msg_2() 59 lv_msg_subsribe_obj(MSG_LOG_OUT, label, NULL); in lv_example_msg_2() [all …]
|
/lvgl-3.5.0/examples/widgets/bar/ |
D | lv_example_bar_5.py | 10 label = lv.label(lv.scr_act()) variable 11 label.set_text("Left to Right base direction") 12 label.align_to(bar_ltr, lv.ALIGN.OUT_TOP_MID, 0, -5) 20 label = lv.label(lv.scr_act()) variable 21 label.set_text("Right to Left base direction") 22 label.align_to(bar_rtl, lv.ALIGN.OUT_TOP_MID, 0, -5)
|
D | lv_example_bar_5.c | 9 lv_obj_t * label; in lv_example_bar_5() local 17 label = lv_label_create(lv_scr_act()); in lv_example_bar_5() 18 lv_label_set_text(label, "Left to Right base direction"); in lv_example_bar_5() 19 lv_obj_align_to(label, bar_ltr, LV_ALIGN_OUT_TOP_MID, 0, -5); in lv_example_bar_5() 27 label = lv_label_create(lv_scr_act()); in lv_example_bar_5() 28 lv_label_set_text(label, "Right to Left base direction"); in lv_example_bar_5() 29 lv_obj_align_to(label, bar_rtl, LV_ALIGN_OUT_TOP_MID, 0, -5); in lv_example_bar_5()
|
/lvgl-3.5.0/examples/libs/freetype/ |
D | lv_example_freetype_1.c | 28 lv_obj_t * label = lv_label_create(lv_scr_act()); in lv_example_freetype_1() local 29 lv_obj_add_style(label, &style, 0); in lv_example_freetype_1() 30 lv_label_set_text(label, "Hello world\nI'm a font created with FreeType"); in lv_example_freetype_1() 31 lv_obj_center(label); in lv_example_freetype_1() 40 lv_obj_t * label = lv_label_create(lv_scr_act()); in lv_example_freetype_1() local 41 lv_label_set_text(label, "FreeType is not installed"); in lv_example_freetype_1() 42 lv_obj_center(label); in lv_example_freetype_1()
|