Home
last modified time | relevance | path

Searched refs:line_space (Results 1 – 21 of 21) sorted by relevance

/lvgl-3.4.0/examples/widgets/roller/
Dlv_example_roller_3.c18 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()
Dlv_example_roller_3.py67 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/
Dlv_roller.c193 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 …]
Dlv_dropdown.c787 …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 …]
Dlv_checkbox.c165 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()
Dlv_label.c318 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 …]
Dlv_table.c37 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()
Dlv_textarea.c754 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()
Dlv_btnmatrix.c776 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()
Dlv_img.c140 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/
Dlv_span.c386 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/
Dlv_draw_label.h37 lv_coord_t line_space; member
Dlv_draw_label.c116 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/
Dlv_txt.c92 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()
Dlv_txt.h84 lv_coord_t line_space, lv_coord_t max_width, lv_text_flag_t flag);
/lvgl-3.4.0/examples/widgets/bar/
Dlv_example_bar_6.c24 …lv_txt_get_size(&txt_size, buf, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_C… in event_cb()
Dlv_example_bar_6.py17 …txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, lv.COORD.MAX, l…
Dtest.py20 …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/
Dlv_obj_draw.c207 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/
Dlv_meter.c526 …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/
Dlv_chart.c1465 …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()