Home
last modified time | relevance | path

Searched refs:label_dsc (Results 1 – 25 of 26) sorted by relevance

12

/lvgl-3.7.0/examples/widgets/bar/
Dlv_example_bar_6.c16 lv_draw_label_dsc_t label_dsc; in event_cb() local
17 lv_draw_label_dsc_init(&label_dsc); in event_cb()
18 label_dsc.font = LV_FONT_DEFAULT; in event_cb()
24 …lv_txt_get_size(&txt_size, buf, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_C… in event_cb()
25 label_dsc.flag); in event_cb()
32 label_dsc.color = lv_color_white(); in event_cb()
38 label_dsc.color = lv_color_black(); in event_cb()
44 lv_draw_label(dsc->draw_ctx, &label_dsc, &txt_area, buf, NULL); in event_cb()
Dlv_example_bar_6.py11 label_dsc = lv.draw_label_dsc_t()
12 label_dsc.init()
17 …txt_get_size(txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, lv…
24 label_dsc.color = lv.color_white()
29 label_dsc.color = lv.color_black()
34 dsc.draw_ctx.label(label_dsc, txt_area, value_txt, None)
Dtest.py14 label_dsc = lv.draw_label_dsc_t()
15 label_dsc.init()
20 …txt_get_size(txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, lv…
27 label_dsc.color = lv.color_white()
32 label_dsc.color = lv.color_black()
37 dsc.draw_ctx.label(label_dsc, txt_area, value_txt, None)
/lvgl-3.7.0/examples/widgets/label/
Dlv_example_label_4.c43 lv_draw_label_dsc_t label_dsc; in lv_example_label_4() local
44 lv_draw_label_dsc_init(&label_dsc); in lv_example_label_4()
45 label_dsc.color = lv_color_white(); in lv_example_label_4()
46 label_dsc.align = LV_TEXT_ALIGN_CENTER; in lv_example_label_4()
47 lv_canvas_draw_text(canvas, 5, 5, MASK_WIDTH, &label_dsc, "Text with gradient"); in lv_example_label_4()
/lvgl-3.7.0/examples/widgets/canvas/
Dlv_example_canvas_1.c23 lv_draw_label_dsc_t label_dsc; in lv_example_canvas_1() local
24 lv_draw_label_dsc_init(&label_dsc); in lv_example_canvas_1()
25 label_dsc.color = lv_palette_main(LV_PALETTE_ORANGE); in lv_example_canvas_1()
36 lv_canvas_draw_text(canvas, 40, 20, 100, &label_dsc, "Some text on text canvas"); in lv_example_canvas_1()
Dlv_example_canvas_1.py19 label_dsc = lv.draw_label_dsc_t() variable
20 label_dsc.init()
21 label_dsc.color = lv.palette_main(lv.PALETTE.YELLOW)
31 canvas.draw_text(40, 20, 100, label_dsc, "Some text on text canvas")
/lvgl-3.7.0/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_2.c22 dsc->label_dsc->color = lv_color_white(); in event_cb()
30 dsc->label_dsc->color = lv_color_white(); in event_cb()
33 dsc->label_dsc->opa = LV_OPA_TRANSP; /*Hide the text if any*/ in event_cb()
Dlv_example_btnmatrix_2.py37 dsc.label_dsc.color = lv.color_white()
48 dsc.label_dsc.color = lv.color_white()
50 dsc.label_dsc.opa = lv.OPA.TRANSP # Hide the text if any
/lvgl-3.7.0/examples/widgets/table/
Dlv_example_table_1.c15 dsc->label_dsc->align = LV_TEXT_ALIGN_CENTER; in draw_part_event_cb()
21 dsc->label_dsc->align = LV_TEXT_ALIGN_RIGHT; in draw_part_event_cb()
Dlv_example_table_1.py11 dsc.label_dsc.align = lv.TEXT_ALIGN.CENTER
17 dsc.label_dsc.flag = lv.TEXT_ALIGN.RIGHT
/lvgl-3.7.0/src/widgets/
Dlv_dropdown.c859 lv_draw_label_dsc_t label_dsc; in draw_main() local
860 lv_draw_label_dsc_init(&label_dsc); in draw_main()
861 lv_obj_init_draw_label_dsc(obj, LV_PART_MAIN, &label_dsc); in draw_main()
864 …lv_txt_get_size(&size, opt_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_C… in draw_main()
865 label_dsc.flag); in draw_main()
886 lv_draw_label(draw_ctx, &label_dsc, &txt_area, opt_txt, NULL); in draw_main()
980 lv_draw_label_dsc_t label_dsc; in draw_box_label() local
981 lv_draw_label_dsc_init(&label_dsc); in draw_box_label()
982 lv_obj_init_draw_label_dsc(list_obj, LV_PART_SELECTED, &label_dsc); in draw_box_label()
984 label_dsc.line_space = lv_obj_get_style_text_line_space(list_obj, in draw_box_label()
[all …]
Dlv_roller.c464 lv_draw_label_dsc_t label_dsc; in draw_main() local
465 lv_draw_label_dsc_init(&label_dsc); in draw_main()
466 lv_obj_init_draw_label_dsc(obj, LV_PART_SELECTED, &label_dsc); in draw_main()
476 if(lv_label_get_recolor(label)) label_dsc.flag |= LV_TEXT_FLAG_RECOLOR; in draw_main()
480 …lv_txt_get_size(&res_p, lv_label_get_text(label), label_dsc.font, label_dsc.letter_space, label_ds… in draw_main()
492 lv_coord_t corr = (label_dsc.font->line_height - normal_label_font->line_height) / 2; in draw_main()
511 label_dsc.flag |= LV_TEXT_FLAG_EXPAND; in draw_main()
514 lv_draw_label(draw_ctx, &label_dsc, &label_sel_area, lv_label_get_text(label), NULL); in draw_main()
Dlv_img.c676 lv_draw_label_dsc_t label_dsc; in draw_img() local
677 lv_draw_label_dsc_init(&label_dsc); in draw_img()
678 lv_obj_init_draw_label_dsc(obj, LV_PART_MAIN, &label_dsc); in draw_img()
680 lv_draw_label(draw_ctx, &label_dsc, &obj->coords, img->src, NULL); in draw_img()
Dlv_btnmatrix.c736 part_draw_dsc.label_dsc = &draw_label_dsc_act; in draw_main()
Dlv_table.c718 part_draw_dsc.label_dsc = &label_dsc_act; in draw_main()
/lvgl-3.7.0/src/extra/widgets/chart/
Dlv_chart.c1429 lv_draw_label_dsc_t label_dsc; in draw_y_ticks() local
1430 lv_draw_label_dsc_init(&label_dsc); in draw_y_ticks()
1431 lv_obj_init_draw_label_dsc(obj, LV_PART_TICKS, &label_dsc); in draw_y_ticks()
1440 part_draw_dsc.label_dsc = &label_dsc; in draw_y_ticks()
1470 part_draw_dsc.label_dsc = &label_dsc; in draw_y_ticks()
1477 …lv_txt_get_size(&size, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_… in draw_y_ticks()
1496 lv_draw_label(draw_ctx, &label_dsc, &a, part_draw_dsc.text, NULL); in draw_y_ticks()
1500 part_draw_dsc.label_dsc = NULL; in draw_y_ticks()
1532 lv_draw_label_dsc_t label_dsc; in draw_x_ticks() local
1533 lv_draw_label_dsc_init(&label_dsc); in draw_x_ticks()
[all …]
/lvgl-3.7.0/src/draw/
Dlv_draw_img.c361 lv_draw_label_dsc_t label_dsc; local
362 lv_draw_label_dsc_init(&label_dsc);
363 lv_draw_label(draw_ctx, &label_dsc, coords, msg, NULL);
/lvgl-3.7.0/src/extra/widgets/meter/
Dlv_meter.c389 lv_draw_label_dsc_t label_dsc; in draw_ticks_and_labels() local
390 lv_draw_label_dsc_init(&label_dsc); in draw_ticks_and_labels()
391 lv_obj_init_draw_label_dsc(obj, LV_PART_TICKS, &label_dsc); in draw_ticks_and_labels()
493 part_draw_dsc.label_dsc = &label_dsc; in draw_ticks_and_labels()
505 lv_memcpy(&label_dsc_tmp, &label_dsc, sizeof(label_dsc_tmp)); in draw_ticks_and_labels()
507 part_draw_dsc.label_dsc = &label_dsc_tmp; in draw_ticks_and_labels()
526 … lv_draw_label(draw_ctx, part_draw_dsc.label_dsc, &label_cord, part_draw_dsc.text, NULL); in draw_ticks_and_labels()
531 part_draw_dsc.label_dsc = NULL; in draw_ticks_and_labels()
/lvgl-3.7.0/src/core/
Dlv_obj_draw.h50label_dsc; /**< A draw descriptor that can be modified to changed what LVGL will draw. Set only… member
/lvgl-3.7.0/tests/src/test_cases/
Dtest_table.c135 dsc->label_dsc->align = LV_TEXT_ALIGN_CENTER; in draw_part_event_cb()
141 dsc->label_dsc->align = LV_TEXT_ALIGN_RIGHT; in draw_part_event_cb()
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c1320 lv_draw_label_dsc_t label_dsc; in slider_event_cb() local
1321 lv_draw_label_dsc_init(&label_dsc); in slider_event_cb()
1322 label_dsc.color = lv_color_white(); in slider_event_cb()
1323 label_dsc.font = font_normal; in slider_event_cb()
1324 lv_draw_label(dsc->draw_ctx, &label_dsc, &txt_area, buf, NULL); in slider_event_cb()
1442 lv_draw_label_dsc_t label_dsc; in chart_event_cb() local
1443 lv_draw_label_dsc_init(&label_dsc); in chart_event_cb()
1444 label_dsc.color = lv_color_white(); in chart_event_cb()
1445 label_dsc.font = font_normal; in chart_event_cb()
1446 lv_draw_label(dsc->draw_ctx, &label_dsc, &txt_area, buf, NULL); in chart_event_cb()
/lvgl-3.7.0/docs/widgets/core/
Dtable.md55 - `label_dsc`
/lvgl-3.7.0/docs/widgets/extra/
Dmeter.md83 - `label_dsc`: label draw descriptor or `NULL` on minor lines
Dchart.md167 - `label_dsc`,
/lvgl-3.7.0/src/extra/widgets/calendar/
Dlv_calendar.c303 dsc->label_dsc->color = lv_palette_main(LV_PALETTE_GREY); in draw_part_begin_event_cb()

12