Searched refs:line_start (Results 1 – 6 of 6) sorted by relevance
/lvgl-latest/src/draw/ |
D | lv_draw_label.c | 246 uint32_t line_start = 0; in lv_draw_label_iterate_characters() local 253 dsc->hint->line_start = -1; in lv_draw_label_iterate_characters() 255 last_line_start = dsc->hint->line_start; in lv_draw_label_iterate_characters() 260 line_start = last_line_start; in lv_draw_label_iterate_characters() 266 …uint32_t line_end = line_start + lv_text_get_next_line(&dsc->text[line_start], remaining_len, font… in lv_draw_label_iterate_characters() 272 line_start = line_end; in lv_draw_label_iterate_characters() 273 …line_end += lv_text_get_next_line(&dsc->text[line_start], remaining_len, font, dsc->letter_space, … in lv_draw_label_iterate_characters() 277 if(dsc->hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && dsc->hint->line_start < 0) { in lv_draw_label_iterate_characters() 278 dsc->hint->line_start = line_start; in lv_draw_label_iterate_characters() 283 if(dsc->text[line_start] == '\0') return; in lv_draw_label_iterate_characters() [all …]
|
D | lv_draw_label_private.h | 34 int32_t line_start; member
|
/lvgl-latest/src/draw/nema_gfx/ |
D | lv_draw_nema_gfx_label.c | 436 uint32_t line_start = 0; in _draw_label_iterate_characters() local 443 dsc->hint->line_start = -1; in _draw_label_iterate_characters() 445 last_line_start = dsc->hint->line_start; in _draw_label_iterate_characters() 450 line_start = last_line_start; in _draw_label_iterate_characters() 456 …uint32_t line_end = line_start + lv_text_get_next_line(&dsc->text[line_start], remaining_len, font… in _draw_label_iterate_characters() 462 line_start = line_end; in _draw_label_iterate_characters() 463 …line_end += lv_text_get_next_line(&dsc->text[line_start], remaining_len, font, dsc->letter_space, … in _draw_label_iterate_characters() 467 if(dsc->hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && dsc->hint->line_start < 0) { in _draw_label_iterate_characters() 468 dsc->hint->line_start = line_start; in _draw_label_iterate_characters() 473 if(dsc->text[line_start] == '\0') return; in _draw_label_iterate_characters() [all …]
|
/lvgl-latest/src/widgets/label/ |
D | lv_label.c | 345 uint32_t line_start = 0; in lv_label_get_letter_pos() local 351 …new_line_start += lv_text_get_next_line(&txt[line_start], LV_TEXT_LEN_MAX, font, letter_space, max… in lv_label_get_letter_pos() 356 line_start = new_line_start; in lv_label_get_letter_pos() 363 line_start = byte_id; in lv_label_get_letter_pos() 376 visual_byte_pos = base_dir == LV_BASE_DIR_RTL ? 0 : byte_id - line_start; in lv_label_get_letter_pos() 377 bidi_txt = &txt[line_start]; in lv_label_get_letter_pos() 380 uint32_t line_char_id = lv_text_encoded_get_char_id(&txt[line_start], byte_id - line_start); in lv_label_get_letter_pos() 383 … visual_char_pos = lv_bidi_get_visual_pos(&txt[line_start], &mutable_bidi_txt, new_line_start - li… in lv_label_get_letter_pos() 391 bidi_txt = &txt[line_start]; in lv_label_get_letter_pos() 392 visual_byte_pos = byte_id - line_start; in lv_label_get_letter_pos() [all …]
|
/lvgl-latest/src/misc/ |
D | lv_text.c | 103 uint32_t line_start = 0; in lv_text_get_size() local 108 while(text[line_start] != '\0') { in lv_text_get_size() 109 …new_line_start += lv_text_get_next_line(&text[line_start], LV_TEXT_LEN_MAX, font, letter_space, ma… in lv_text_get_size() 121 …int32_t act_line_length = lv_text_get_width(&text[line_start], new_line_start - line_start, font, … in lv_text_get_size() 124 line_start = new_line_start; in lv_text_get_size() 128 if((line_start != 0) && (text[line_start - 1] == '\n' || text[line_start - 1] == '\r')) { in lv_text_get_size()
|
/lvgl-latest/src/widgets/roller/ |
D | lv_roller.c | 231 size_t line_start = 0; in lv_roller_set_selected_str() local 236 if(lv_strncmp(&options[line_start], sel_opt, i - line_start) == 0) { in lv_roller_set_selected_str() 243 line_start = i + 1; in lv_roller_set_selected_str()
|