Home
last modified time | relevance | path

Searched refs:label1 (Results 1 – 8 of 8) sorted by relevance

/lvgl-3.7.0/examples/widgets/label/
Dlv_example_label_1.c9 lv_obj_t * label1 = lv_label_create(lv_scr_act()); in lv_example_label_1() local
10 lv_label_set_long_mode(label1, LV_LABEL_LONG_WRAP); /*Break the long lines*/ in lv_example_label_1()
11 …lv_label_set_recolor(label1, true); /*Enable re-coloring by commands in the t… in lv_example_label_1()
12 …lv_label_set_text(label1, "#0000ff Re-color# #ff00ff words# #ff0000 of a# label, align the lines t… in lv_example_label_1()
14 lv_obj_set_width(label1, 150); /*Set smaller width to make the lines wrap*/ in lv_example_label_1()
15 lv_obj_set_style_text_align(label1, LV_TEXT_ALIGN_CENTER, 0); in lv_example_label_1()
16 lv_obj_align(label1, LV_ALIGN_CENTER, 0, -40); in lv_example_label_1()
Dlv_example_label_1.py4 label1 = lv.label(lv.scr_act()) variable
5 label1.set_long_mode(lv.label.LONG.WRAP) # Break the long lines*/
6 label1.set_recolor(True) # Enable re-coloring by commands in the text
7 label1.set_text("#0000ff Re-color# #ff00ff words# #ff0000 of a# label, align the lines to the cente…
9 label1.set_width(150) # Set smaller width to make the lines wrap
10 label1.set_style_text_align(lv.ALIGN.CENTER, 0)
11 label1.align(lv.ALIGN.CENTER, 0, -40)
Dlv_example_label_5.c22 lv_obj_t * label1 = lv_label_create(lv_scr_act()); in lv_example_label_5() local
23 lv_label_set_long_mode(label1, LV_LABEL_LONG_SCROLL_CIRCULAR); /*Circular scroll*/ in lv_example_label_5()
24 lv_obj_set_width(label1, 150); in lv_example_label_5()
25 lv_label_set_text(label1, "It is a circularly scrolling text. "); in lv_example_label_5()
26 lv_obj_align(label1, LV_ALIGN_CENTER, 0, 40); in lv_example_label_5()
27 … lv_obj_add_style(label1, &label_style, LV_STATE_DEFAULT); /*Add the style to the label*/ in lv_example_label_5()
Dlv_example_label_5.py5 label1 = lv.label(lv.scr_act()) variable
6 label1.set_long_mode(lv.label.LONG.SCROLL_CIRCULAR) # Circular scroll
7 label1.set_width(150)
8 label1.set_text("It is a circularly scrolling text. ")
9 label1.align(lv.ALIGN.CENTER, 0, 40)
/lvgl-3.7.0/examples/others/imgfont/
Dlv_example_imgfont_1.c39 lv_obj_t * label1 = lv_label_create(lv_scr_act()); in lv_example_imgfont_1() local
40 lv_label_set_text(label1, "12\uF600\uF617AB"); in lv_example_imgfont_1()
41 lv_obj_set_style_text_font(label1, imgfont, LV_PART_MAIN); in lv_example_imgfont_1()
42 lv_obj_center(label1); in lv_example_imgfont_1()
/lvgl-3.7.0/docs/overview/
Dlayer.md27 lv_obj_t * label1 = lv_label_create(btn1, NULL); /*Create a label on the first button*/
28 lv_label_set_text(label1, "Button 1"); /*Set the text of the label*/
Dfont.md21 lv_obj_t * label1 = lv_label_create(lv_scr_act(), NULL);
22 lv_label_set_text(label1, LV_SYMBOL_OK);
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c1127 lv_obj_t * label1 = lv_label_create(cont); in create_meter_box() local
1128 lv_label_set_text(label1, text1); in create_meter_box()
1156 lv_obj_set_grid_cell(label1, LV_GRID_ALIGN_STRETCH, 3, 1, LV_GRID_ALIGN_CENTER, 2, 1); in create_meter_box()
1169 lv_obj_set_grid_cell(label1, LV_GRID_ALIGN_STRETCH, 1, 1, LV_GRID_ALIGN_START, 2, 1); in create_meter_box()