Home
last modified time | relevance | path

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

/lvgl-latest/examples/widgets/roller/
Dlv_example_roller_3.c19 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in mask_event_cb() local
29 rect_area.y2 = roller_coords.y1 + (lv_obj_get_height(obj) - font_h - line_space) / 2; in mask_event_cb()
35 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-latest/src/widgets/
Dlv_roller.c196 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() local
198 … 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()
577 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in get_sel_area() local
578 lv_coord_t d = (font_sel_h + font_main_h) / 2 + line_space; in get_sel_area()
615 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in refr_position() local
627 lv_coord_t sel_y1 = id * (font_h + line_space); in refr_position()
698 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in release_handler() local
701 lv_coord_t label_unit = font_h + line_space; in release_handler()
740 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in inf_normalize() local
[all …]
Dlv_dropdown.c813 …e, dropdown->symbol, symbol_dsc.font, symbol_dsc.letter_space, symbol_dsc.line_space, LV_COORD_MAX, 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()
944 lv_coord_t line_space = lv_obj_get_style_text_line_space(list_obj, LV_PART_SELECTED); in draw_box() local
951 rect_area.y1 += id * (font_h + line_space); in draw_box()
952 rect_area.y1 -= line_space / 2; in draw_box()
954 rect_area.y2 = rect_area.y1 + font_h + line_space - 1; in draw_box()
984 label_dsc.line_space = lv_obj_get_style_text_line_space(list_obj, in draw_box_label()
994 area_sel.y1 += id * (font_h + label_dsc.line_space); in draw_box_label()
995 area_sel.y1 -= label_dsc.line_space / 2; in draw_box_label()
997 area_sel.y2 = area_sel.y1 + font_h + label_dsc.line_space - 1; in draw_box_label()
[all …]
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()
769 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_event() local
778 lv_txt_get_size(&size, label->text, font, letter_space, line_space, w, flag); in lv_label_event()
825 …ze(&size, label->text, label_draw_dsc.font, label_draw_dsc.letter_space, label_draw_dsc.line_space, in draw_main()
[all …]
Dlv_checkbox.c167 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_event() local
171 …lv_txt_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NON… in lv_checkbox_event()
245 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_draw() local
249 …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_table.c37 lv_coord_t letter_space, lv_coord_t line_space,
834 label_dsc_act.letter_space, label_dsc_act.line_space, in draw_main()
872 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_ITEMS); in refr_size_form_row() local
881 lv_coord_t calculated_height = get_row_height(obj, i, font, letter_space, line_space, in refr_size_form_row()
898 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_ITEMS); in refr_cell_size() local
905 lv_coord_t calculated_height = get_row_height(obj, row, font, letter_space, line_space, in refr_cell_size()
925 lv_coord_t letter_space, lv_coord_t line_space, in get_row_height() argument
977 letter_space, line_space, txt_w, LV_TEXT_FLAG_NONE); in get_row_height()
Dlv_textarea.c760 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_textarea_cursor_down() local
763 pos.y += font_h + line_space + 1; in lv_textarea_cursor_down()
788 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_textarea_cursor_up() local
791 pos.y -= font_h + line_space - 1; in lv_textarea_cursor_up()
1054 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in refr_cursor_area() local
1081 letter_pos.y += letter_h + line_space; in refr_cursor_area()
Dlv_btnmatrix.c813 lv_coord_t line_space = draw_label_dsc_act.line_space; in draw_main() local
826 line_space, lv_area_get_width(&area_obj), draw_label_dsc_act.flag); in draw_main()
Dlv_img.c141 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_img_set_src() local
143 … lv_txt_get_size(&size, src, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in lv_img_set_src()
/lvgl-latest/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-latest/src/extra/widgets/span/
Dlv_span.c401 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_spangroup_get_expand_height() local
443 snippet.line_h = lv_font_get_line_height(snippet.font) + line_space; in lv_spangroup_get_expand_height()
492 txt_pos.y -= line_space; in lv_spangroup_get_expand_height()
778 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN);; in lv_draw_span() local
826 snippet.line_h = lv_font_get_line_height(snippet.font) + line_space; in lv_draw_span()
885 … next_line_h = lv_font_get_line_height(lv_span_get_style_text_font(obj, next_span)) + line_space; in lv_draw_span()
888 …if(txt_pos.y + max_line_h + next_line_h - line_space > coords.y2 + 1) { /* for overflow if is end … in lv_draw_span()
1000 p1.y = pos.y + ((pinfo->line_h - line_space) >> 1) + (line_dsc.width >> 1); in lv_draw_span()
1010 …p1.y = pos.y + pinfo->line_h - line_space - pinfo->font->base_line - pinfo->font->underline_positi… in lv_draw_span()
/lvgl-latest/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-latest/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()
Dtest.py20 …txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, lv.COORD.MAX, l…
Dlv_example_bar_6.py17 …txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, lv.COORD.MAX, l…
/lvgl-latest/src/core/
Dlv_obj_draw.c208 draw_dsc->line_space = lv_obj_get_style_text_line_space(obj, part); in lv_obj_init_draw_label_dsc()
/lvgl-latest/src/extra/widgets/meter/
Dlv_meter.c517 label_dsc_tmp.line_space, in draw_ticks_and_labels()
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.c1477 …ze, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_COORD_MAX, in draw_y_ticks()
1615 …ze, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_COORD_MAX, in draw_x_ticks()