Home
last modified time | relevance | path

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

/lvgl-latest/src/widgets/label/
Dlv_label.c333 const int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_get_letter_pos() local
348 bool last_line = y + letter_height + line_space + letter_height > max_h; in lv_label_get_letter_pos()
355 y += letter_height + line_space; in lv_label_get_letter_pos()
362 y += letter_height + line_space; in lv_label_get_letter_pos()
428 const int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_get_letter_on() local
439 bool last_line = y + letter_height + line_space + letter_height > max_h; in lv_label_get_letter_on()
453 y += letter_height + line_space; in lv_label_get_letter_on()
551 const int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_is_char_under_pos() local
560 bool last_line = y + letter_height + line_space + letter_height > max_h; in lv_label_is_char_under_pos()
566 y += letter_height + line_space; in lv_label_is_char_under_pos()
[all …]
/lvgl-latest/src/widgets/dropdown/
Dlv_dropdown.c890 …e, dropdown->symbol, symbol_dsc.font, symbol_dsc.letter_space, symbol_dsc.line_space, LV_COORD_MAX, in draw_main()
942 …lv_text_get_size(&size, opt_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_… in draw_main()
1023 int32_t line_space = lv_obj_get_style_text_line_space(list_obj, LV_PART_SELECTED); in draw_box() local
1030 rect_area.y1 += id * (font_h + line_space); in draw_box()
1031 rect_area.y1 -= line_space / 2; in draw_box()
1033 rect_area.y2 = rect_area.y1 + font_h + line_space - 1; in draw_box()
1065 label_dsc.line_space = lv_obj_get_style_text_line_space(list_obj, in draw_box_label()
1075 area_sel.y1 += id * (font_h + label_dsc.line_space); in draw_box_label()
1076 area_sel.y1 -= label_dsc.line_space / 2; in draw_box_label()
1078 area_sel.y2 = area_sel.y1 + font_h + label_dsc.line_space - 1; in draw_box_label()
[all …]
/lvgl-latest/src/widgets/roller/
Dlv_roller.c255 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() local
257 … 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()
548 label_dsc.line_space, lv_obj_get_width(obj), LV_TEXT_FLAG_EXPAND); in draw_main()
652 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in get_sel_area() local
653 int32_t d = (font_sel_h + font_main_h) / 2 + line_space; in get_sel_area()
694 const int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in refr_position() local
708 const int32_t sel_y1 = id * (font_h + line_space); in refr_position()
778 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in release_handler() local
781 int32_t label_unit = font_h + line_space; in release_handler()
832 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in inf_normalize() local
[all …]
/lvgl-latest/src/widgets/checkbox/
Dlv_checkbox.c185 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_event() local
189 …lv_text_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NO… in lv_checkbox_event()
260 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_draw() local
264 …lv_text_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NO… in lv_checkbox_draw()
/lvgl-latest/src/misc/
Dlv_text.h86 int32_t line_space, int32_t max_width, lv_text_flag_t flag);
Dlv_text.c93 int32_t line_space, int32_t max_width, lv_text_flag_t flag) in lv_text_get_size() argument
111 …if((unsigned long)size_res->y + (unsigned long)letter_height + (unsigned long)line_space > LV_MAX_… in lv_text_get_size()
117 size_res->y += line_space; in lv_text_get_size()
129 size_res->y += letter_height + line_space; in lv_text_get_size()
136 size_res->y -= line_space; in lv_text_get_size()
/lvgl-latest/examples/widgets/bar/
Dlv_example_bar_6.c24 …lv_text_get_size(&txt_size, buf, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_… in event_cb()
/lvgl-latest/src/draw/
Dlv_draw_label.h43 int32_t line_space; member
Dlv_draw_label.c227 lv_text_get_size(&p, dsc->text, dsc->font, dsc->letter_space, dsc->line_space, LV_COORD_MAX, in lv_draw_label_iterate_characters()
233 int32_t line_height = line_height_font + dsc->line_space; in lv_draw_label_iterate_characters()
/lvgl-latest/src/widgets/span/
Dlv_span.c446 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_spangroup_get_expand_height() local
490 snippet.line_h = lv_font_get_line_height(snippet.font) + line_space; in lv_spangroup_get_expand_height()
553 txt_pos.y -= line_space; in lv_spangroup_get_expand_height()
911 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN);; in lv_draw_span() local
959 snippet.line_h = lv_font_get_line_height(snippet.font) + line_space; in lv_draw_span()
1022 … next_line_h = lv_font_get_line_height(lv_span_get_style_text_font(obj, next_span)) + line_space; in lv_draw_span()
1025 …if(txt_pos.y + max_line_h + next_line_h - line_space > coords.y2 + 1) { /* for overflow if is end … in lv_draw_span()
/lvgl-latest/src/widgets/table/
Dlv_table.c41 int32_t letter_space, int32_t line_space,
841 label_dsc_act.letter_space, label_dsc_act.line_space, in draw_main()
878 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_ITEMS); in refr_size_form_row() local
887 int32_t calculated_height = get_row_height(obj, i, font, letter_space, line_space, in refr_size_form_row()
904 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_ITEMS); in refr_cell_size() local
911 int32_t calculated_height = get_row_height(obj, row, font, letter_space, line_space, in refr_cell_size()
931 int32_t letter_space, int32_t line_space, in get_row_height() argument
983 letter_space, line_space, txt_w, LV_TEXT_FLAG_NONE); in get_row_height()
/lvgl-latest/src/widgets/textarea/
Dlv_textarea.c878 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_textarea_cursor_down() local
881 pos.y += font_h + line_space + 1; in lv_textarea_cursor_down()
906 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_textarea_cursor_up() local
909 pos.y -= font_h + line_space - 1; in lv_textarea_cursor_up()
1176 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in refr_cursor_area() local
1203 letter_pos.y += letter_h + line_space; in refr_cursor_area()
/lvgl-latest/src/widgets/buttonmatrix/
Dlv_buttonmatrix.c788 int32_t line_space = draw_label_dsc_act.line_space; in draw_main() local
801 line_space, lv_area_get_width(&area_obj), draw_label_dsc_act.flag); in draw_main()
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_label.c417 lv_text_get_size(&p, dsc->text, dsc->font, dsc->letter_space, dsc->line_space, LV_COORD_MAX, in _draw_label_iterate_characters()
423 int32_t line_height = line_height_font + dsc->line_space; in _draw_label_iterate_characters()
/lvgl-latest/src/widgets/image/
Dlv_image.c226 int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_image_set_src() local
228 … lv_text_get_size(&size, src, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in lv_image_set_src()
/lvgl-latest/src/core/
Dlv_obj_draw.c176 draw_dsc->line_space = lv_obj_get_style_text_line_space(obj, part); in lv_obj_init_draw_label_dsc()
/lvgl-latest/src/widgets/scale/
Dlv_scale.c1187 … label_dsc->font, label_dsc->letter_space, label_dsc->line_space, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in scale_get_label_coords()