/lvgl-3.4.0/examples/widgets/roller/ |
D | lv_example_roller_3.c | 18 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in mask_event_cb() local 28 rect_area.y2 = roller_coords.y1 + (lv_obj_get_height(obj) - font_h - line_space) / 2; in mask_event_cb() 34 rect_area.y1 = rect_area.y2 + font_h + line_space - 1; in mask_event_cb()
|
D | lv_example_roller_3.py | 67 line_space = obj.get_style_text_line_space(lv.PART.MAIN) 77 rect_area.y2 = roller_coords.y1 + (obj.get_height() - font_h - line_space) // 2 83 rect_area.y1 = rect_area.y2 + font_h + line_space - 1
|
/lvgl-3.4.0/src/widgets/ |
D | lv_roller.c | 193 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() local 195 … lv_obj_set_height(obj, (lv_font_get_line_height(font) + line_space) * row_cnt + 2 * border_width); in lv_roller_set_visible_row_count() 480 …ize(&res_p, lv_label_get_text(label), label_dsc.font, label_dsc.letter_space, label_dsc.line_space, in draw_main() 575 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in get_sel_area() local 576 lv_coord_t d = (font_sel_h + font_main_h) / 2 + line_space; in get_sel_area() 613 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in refr_position() local 625 lv_coord_t sel_y1 = id * (font_h + line_space); in refr_position() 696 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in release_handler() local 699 lv_coord_t label_unit = font_h + line_space; in release_handler() 738 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in inf_normalize() local [all …]
|
D | lv_dropdown.c | 787 …e, dropdown->symbol, symbol_dsc.font, symbol_dsc.letter_space, symbol_dsc.line_space, LV_COORD_MAX, in draw_main() 838 …lv_txt_get_size(&size, opt_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_C… in draw_main() 918 lv_coord_t line_space = lv_obj_get_style_text_line_space(list_obj, LV_PART_SELECTED); in draw_box() local 925 rect_area.y1 += id * (font_h + line_space); in draw_box() 926 rect_area.y1 -= line_space / 2; in draw_box() 928 rect_area.y2 = rect_area.y1 + font_h + line_space - 1; in draw_box() 958 label_dsc.line_space = lv_obj_get_style_text_line_space(list_obj, in draw_box_label() 968 area_sel.y1 += id * (font_h + label_dsc.line_space); in draw_box_label() 969 area_sel.y1 -= label_dsc.line_space / 2; in draw_box_label() 971 area_sel.y2 = area_sel.y1 + font_h + label_dsc.line_space - 1; in draw_box_label() [all …]
|
D | lv_checkbox.c | 165 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_event() local 169 …lv_txt_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NON… in lv_checkbox_event() 243 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_draw() local 247 …lv_txt_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NON… in lv_checkbox_draw()
|
D | lv_label.c | 318 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_get_letter_pos() local 336 y += letter_height + line_space; in lv_label_get_letter_pos() 343 y += letter_height + line_space; in lv_label_get_letter_pos() 417 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_get_letter_on() local 444 y += letter_height + line_space; in lv_label_get_letter_on() 537 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_is_char_under_pos() local 554 y += letter_height + line_space; in lv_label_is_char_under_pos() 770 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_event() local 779 lv_txt_get_size(&size, label->text, font, letter_space, line_space, w, flag); in lv_label_event() 827 …ze(&size, label->text, label_draw_dsc.font, label_draw_dsc.letter_space, label_draw_dsc.line_space, in draw_main() [all …]
|
D | lv_table.c | 37 lv_coord_t letter_space, lv_coord_t line_space, 190 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_ITEMS); in lv_table_set_cell_value_fmt() local 193 lv_coord_t h = get_row_height(obj, row, font, letter_space, line_space, in lv_table_set_cell_value_fmt() 755 label_dsc_act.letter_space, label_dsc_act.line_space, in draw_main() 796 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_ITEMS); in refr_size() local 803 table->row_h[i] = get_row_height(obj, i, font, letter_space, line_space, in refr_size() 812 lv_coord_t letter_space, lv_coord_t line_space, in get_row_height() argument 857 letter_space, line_space, txt_w, LV_TEXT_FLAG_NONE); in get_row_height()
|
D | lv_textarea.c | 754 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_textarea_cursor_down() local 757 pos.y += font_h + line_space + 1; in lv_textarea_cursor_down() 782 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_textarea_cursor_up() local 785 pos.y -= font_h + line_space - 1; in lv_textarea_cursor_up() 1056 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in refr_cursor_area() local 1087 letter_pos.y += letter_h + line_space; in refr_cursor_area()
|
D | lv_btnmatrix.c | 776 lv_coord_t line_space = draw_label_dsc_act.line_space; in draw_main() local 789 line_space, lv_area_get_width(&area_obj), draw_label_dsc_act.flag); in draw_main()
|
D | lv_img.c | 140 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_img_set_src() local 142 … lv_txt_get_size(&size, src, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in lv_img_set_src()
|
/lvgl-3.4.0/src/extra/widgets/span/ |
D | lv_span.c | 386 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_spangroup_get_expand_height() local 426 snippet.line_h = lv_font_get_line_height(snippet.font) + line_space; in lv_spangroup_get_expand_height() 471 txt_pos.y -= line_space; in lv_spangroup_get_expand_height() 756 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN);; in lv_draw_span() local 803 snippet.line_h = lv_font_get_line_height(snippet.font) + line_space; in lv_draw_span() 808 if(txt_pos.y + snippet.line_h - line_space > coords.y2 + 1) { in lv_draw_span() 827 … next_line_h = lv_font_get_line_height(lv_span_get_style_text_font(obj, next_span)) + line_space; in lv_draw_span() 831 …if(txt_pos.y + cur_line_h + next_line_h - line_space > coords.y2 + 1) { /* for overflow if is end … in lv_draw_span() 987 p1.y = pos.y + ((pinfo->line_h - line_space) >> 1) + (line_dsc.width >> 1); in lv_draw_span() 997 …p1.y = pos.y + pinfo->line_h - line_space - pinfo->font->base_line - pinfo->font->underline_positi… in lv_draw_span()
|
/lvgl-3.4.0/src/draw/ |
D | lv_draw_label.h | 37 lv_coord_t line_space; member
|
D | lv_draw_label.c | 116 lv_txt_get_size(&p, txt, dsc->font, dsc->letter_space, dsc->line_space, LV_COORD_MAX, in lv_draw_label() 122 int32_t line_height = line_height_font + dsc->line_space; in lv_draw_label()
|
/lvgl-3.4.0/src/misc/ |
D | lv_txt.c | 92 lv_coord_t line_space, lv_coord_t max_width, lv_text_flag_t flag) in lv_txt_get_size() argument 110 …if((unsigned long)size_res->y + (unsigned long)letter_height + (unsigned long)line_space > LV_MAX_… in lv_txt_get_size() 116 size_res->y += line_space; in lv_txt_get_size() 129 size_res->y += letter_height + line_space; in lv_txt_get_size() 136 size_res->y -= line_space; in lv_txt_get_size()
|
D | lv_txt.h | 84 lv_coord_t line_space, lv_coord_t max_width, lv_text_flag_t flag);
|
/lvgl-3.4.0/examples/widgets/bar/ |
D | lv_example_bar_6.c | 24 …lv_txt_get_size(&txt_size, buf, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_C… in event_cb()
|
D | lv_example_bar_6.py | 17 …txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, lv.COORD.MAX, l…
|
D | test.py | 20 …txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, lv.COORD.MAX, l…
|
/lvgl-3.4.0/src/core/ |
D | lv_obj_draw.c | 207 draw_dsc->line_space = lv_obj_get_style_text_line_space(obj, part); in lv_obj_init_draw_label_dsc()
|
/lvgl-3.4.0/src/extra/widgets/meter/ |
D | lv_meter.c | 526 …size(&label_size, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, in draw_ticks_and_labels()
|
/lvgl-3.4.0/src/extra/widgets/chart/ |
D | lv_chart.c | 1465 …ze, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_COORD_MAX, in draw_y_ticks() 1602 …ze, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_COORD_MAX, in draw_x_ticks()
|