Home
last modified time | relevance | path

Searched refs:line_start (Results 1 – 5 of 5) sorted by relevance

/lvgl-3.7.0/src/draw/
Dlv_draw_label.c136 uint32_t line_start = 0; in lv_draw_label() local
143 hint->line_start = -1; in lv_draw_label()
145 last_line_start = hint->line_start; in lv_draw_label()
150 line_start = last_line_start; in lv_draw_label()
154 …uint32_t line_end = line_start + _lv_txt_get_next_line(&txt[line_start], font, dsc->letter_space, … in lv_draw_label()
159 line_start = line_end; 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()
164 if(hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && hint->line_start < 0) { in lv_draw_label()
165 hint->line_start = line_start; in lv_draw_label()
170 if(txt[line_start] == '\0') return; in lv_draw_label()
[all …]
Dlv_draw_label.h56 int32_t line_start; member
/lvgl-3.7.0/src/widgets/
Dlv_label.c314 uint32_t line_start = 0; 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()
337 line_start = new_line_start; in lv_label_get_letter_pos()
344 line_start = byte_id; in lv_label_get_letter_pos()
357 visual_byte_pos = base_dir == LV_BASE_DIR_RTL ? 0 : byte_id - line_start; in lv_label_get_letter_pos()
358 bidi_txt = &txt[line_start]; in lv_label_get_letter_pos()
361 uint32_t line_char_id = _lv_txt_encoded_get_char_id(&txt[line_start], byte_id - line_start); in lv_label_get_letter_pos()
364 …visual_char_pos = _lv_bidi_get_visual_pos(&txt[line_start], &mutable_bidi_txt, new_line_start - li… in lv_label_get_letter_pos()
372 bidi_txt = &txt[line_start]; in lv_label_get_letter_pos()
373 visual_byte_pos = byte_id - line_start; in lv_label_get_letter_pos()
[all …]
/lvgl-3.7.0/src/misc/
Dlv_txt.c102 uint32_t line_start = 0; in lv_txt_get_size() local
107 while(text[line_start] != '\0') { in lv_txt_get_size()
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 …lv_coord_t act_line_length = lv_txt_get_width(&text[line_start], new_line_start - line_start, font… in lv_txt_get_size()
124 line_start = new_line_start; in lv_txt_get_size()
128 if((line_start != 0) && (text[line_start - 1] == '\n' || text[line_start - 1] == '\r')) { in lv_txt_get_size()
/lvgl-3.7.0/docs/
DCHANGELOG.md1213 - fix(label) fix in lv_label_get_letter_pos with when pos==line_start [`58f3f56`](https://github.co…