Home
last modified time | relevance | path

Searched refs:letter_space (Results 1 – 19 of 19) sorted by relevance

/lvgl-3.4.0/src/extra/widgets/span/
Dlv_span.c30 lv_coord_t letter_space; member
56 static bool lv_txt_get_snippet(const char * txt, const lv_font_t * font, lv_coord_t letter_space,
355 lv_coord_t letter_space = 0; in lv_spangroup_get_expand_width() local
358 letter_space = lv_span_get_style_text_letter_space(obj, cur_span); in lv_spangroup_get_expand_width()
369 width = width + letter_w + letter_space; in lv_spangroup_get_expand_width()
373 return width - letter_space; in lv_spangroup_get_expand_width()
425 snippet.letter_space = lv_span_get_style_text_letter_space(obj, cur_span); in lv_spangroup_get_expand_height()
432 … bool isfill = lv_txt_get_snippet(&cur_txt[cur_txt_ofs], snippet.font, snippet.letter_space, in lv_spangroup_get_expand_height()
460 max_w = max_w - use_width - snippet.letter_space; in lv_spangroup_get_expand_height()
578 lv_coord_t letter_space, lv_coord_t max_width, lv_text_flag_t flag, in lv_txt_get_snippet() argument
[all …]
/lvgl-3.4.0/src/draw/
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()
154 …end = line_start + _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, w, NULL, dsc->… in lv_draw_label()
160 … line_end += _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, w, NULL, dsc->flag); in lv_draw_label()
175 …th = lv_txt_get_width(&txt[line_start], line_end - line_start, font, dsc->letter_space, dsc->flag); in lv_draw_label()
182 …th = lv_txt_get_width(&txt[line_start], line_end - line_start, font, dsc->letter_space, dsc->flag); in lv_draw_label()
294 sel_coords.x2 = pos.x + letter_w + dsc->letter_space - 1; in lv_draw_label()
305 pos.x += letter_w + dsc->letter_space; in lv_draw_label()
337 … line_end += _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, w, NULL, dsc->flag); in lv_draw_label()
343 … lv_txt_get_width(&txt[line_start], line_end - line_start, font, dsc->letter_space, dsc->flag); in lv_draw_label()
351 … lv_txt_get_width(&txt[line_start], line_end - line_start, font, dsc->letter_space, dsc->flag); in lv_draw_label()
Dlv_draw_label.h38 lv_coord_t letter_space; member
/lvgl-3.4.0/src/misc/
Dlv_txt.h83 …get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, lv_coord_t letter_space,
99 uint32_t _lv_txt_get_next_line(const char * txt, const lv_font_t * font, lv_coord_t letter_space,
112 …v_txt_get_width(const char * txt, uint32_t length, const lv_font_t * font, lv_coord_t letter_space,
Dlv_txt.c91 …get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, lv_coord_t letter_space, in lv_txt_get_size() argument
108 …new_line_start += _lv_txt_get_next_line(&text[line_start], font, letter_space, max_width, NULL, fl… in lv_txt_get_size()
120 …_line_length = lv_txt_get_width(&text[line_start], new_line_start - line_start, font, letter_space, in lv_txt_get_size()
171 lv_coord_t letter_space, lv_coord_t max_width, in lv_txt_get_next_word() argument
210 cur_w += letter_space; in lv_txt_get_next_word()
214 if(break_index == NO_BREAK_FOUND && (cur_w - letter_space) > max_width) { in lv_txt_get_next_word()
279 lv_coord_t letter_space, lv_coord_t max_width, in _lv_txt_get_next_line() argument
308 …uint32_t advance = lv_txt_get_next_word(&txt[i], font, letter_space, max_width, flag, &word_w, &cm… in _lv_txt_get_next_line()
342 …v_txt_get_width(const char * txt, uint32_t length, const lv_font_t * font, lv_coord_t letter_space, in lv_txt_get_width() argument
368 width += letter_space; in lv_txt_get_width()
[all …]
/lvgl-3.4.0/src/widgets/
Dlv_label.c319 lv_coord_t letter_space = lv_obj_get_style_text_letter_space(obj, LV_PART_MAIN); in lv_label_get_letter_pos() local
332 … new_line_start += _lv_txt_get_next_line(&txt[line_start], font, letter_space, max_w, NULL, flag); in lv_label_get_letter_pos()
377 lv_coord_t x = lv_txt_get_width(bidi_txt, visual_byte_pos, font, letter_space, flag); in lv_label_get_letter_pos()
378 if(char_id != line_start) x += letter_space; in lv_label_get_letter_pos()
382 line_w = lv_txt_get_width(bidi_txt, new_line_start - line_start, font, letter_space, flag); in lv_label_get_letter_pos()
388 line_w = lv_txt_get_width(bidi_txt, new_line_start - line_start, font, letter_space, flag); in lv_label_get_letter_pos()
418 lv_coord_t letter_space = lv_obj_get_style_text_letter_space(obj, LV_PART_MAIN); in lv_label_get_letter_on() local
433 … new_line_start += _lv_txt_get_next_line(&txt[line_start], font, letter_space, max_w, NULL, flag); in lv_label_get_letter_on()
462 line_w = lv_txt_get_width(bidi_txt, new_line_start - line_start, font, letter_space, flag); in lv_label_get_letter_on()
467 line_w = lv_txt_get_width(bidi_txt, new_line_start - line_start, font, letter_space, flag); in lv_label_get_letter_on()
[all …]
Dlv_checkbox.c166 lv_coord_t letter_space = lv_obj_get_style_text_letter_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()
244 lv_coord_t letter_space = lv_obj_get_style_text_letter_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_table.c37 lv_coord_t letter_space, lv_coord_t line_space,
189 lv_coord_t letter_space = lv_obj_get_style_text_letter_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()
795 lv_coord_t letter_space = lv_obj_get_style_text_letter_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_roller.c480 …_get_size(&res_p, lv_label_get_text(label), label_dsc.font, label_dsc.letter_space, label_dsc.line… in draw_main()
764 lv_coord_t letter_space = lv_obj_get_style_text_letter_space(obj, LV_PART_SELECTED); in get_selected_label_width() local
767 lv_txt_get_size(&size, txt, font, letter_space, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in get_selected_label_width()
Dlv_btnmatrix.c775 lv_coord_t letter_space = draw_label_dsc_act.letter_space; in draw_main() local
788 lv_txt_get_size(&txt_size, txt, font, letter_space, in draw_main()
Dlv_img.c139 lv_coord_t letter_space = lv_obj_get_style_text_letter_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()
Dlv_dropdown.c787 …lv_txt_get_size(&size, dropdown->symbol, symbol_dsc.font, symbol_dsc.letter_space, symbol_dsc.line… 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()
/lvgl-3.4.0/tests/src/test_cases/
Dtest_txt.c198 lv_coord_t letter_space = 0; in test_txt_next_line_should_handle_empty_string() local
202 uint32_t next_line = _lv_txt_get_next_line("", font_ptr, letter_space, max_width, NULL, flag); in test_txt_next_line_should_handle_empty_string()
/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 …lv.txt_get_size(txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space,…
Dtest.py20 …lv.txt_get_size(txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space,…
/lvgl-3.4.0/src/core/
Dlv_obj_draw.c206 draw_dsc->letter_space = lv_obj_get_style_text_letter_space(obj, part); in lv_obj_init_draw_label_dsc()
/lvgl-3.4.0/src/extra/widgets/meter/
Dlv_meter.c526 …t_get_size(&label_size, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line… in draw_ticks_and_labels()
/lvgl-3.4.0/src/extra/widgets/chart/
Dlv_chart.c1465 …lv_txt_get_size(&size, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_… in draw_y_ticks()
1602 …lv_txt_get_size(&size, part_draw_dsc.text, label_dsc.font, label_dsc.letter_space, label_dsc.line_… in draw_x_ticks()