Lines Matching refs:txt

25     const char * txt;  member
56 static bool lv_txt_get_snippet(const char * txt, const lv_font_t * font, lv_coord_t letter_space,
108 span->txt = (char *)""; in lv_spangroup_new_span()
129 if(cur_span->txt && cur_span->static_flag == 0) { in lv_spangroup_del_span()
130 lv_mem_free(cur_span->txt); in lv_spangroup_del_span()
151 if(span->txt == NULL || span->static_flag == 1) { in lv_span_set_text()
152 span->txt = lv_mem_alloc(strlen(text) + 1); in lv_span_set_text()
155 span->txt = lv_mem_realloc(span->txt, strlen(text) + 1); in lv_span_set_text()
158 strcpy(span->txt, text); in lv_span_set_text()
169 if(span->txt && span->static_flag == 0) { in lv_span_set_text_static()
170 lv_mem_free(span->txt); in lv_span_set_text_static()
173 span->txt = (char *)text; in lv_span_set_text_static()
375 const char * cur_txt = cur_span->txt; in lv_spangroup_get_expand_width()
412 const char * cur_txt = cur_span->txt; in lv_spangroup_get_expand_height()
431 cur_txt = cur_span->txt; in lv_spangroup_get_expand_height()
469 snippet.txt = &cur_txt[cur_txt_ofs]; in lv_spangroup_get_expand_height()
522 if(cur_span->txt && cur_span->static_flag == 0) { in lv_spangroup_destructor()
523 lv_mem_free(cur_span->txt); in lv_spangroup_destructor()
599 static bool lv_txt_get_snippet(const char * txt, const lv_font_t * font, in lv_txt_get_snippet() argument
603 if(txt == NULL || txt[0] == '\0') { in lv_txt_get_snippet()
609 uint32_t ofs = _lv_txt_get_next_line(txt, font, letter_space, max_width, use_width, flag); in lv_txt_get_snippet()
612 if(txt[ofs] == '\0' && *use_width < max_width) { in lv_txt_get_snippet()
790 const char * cur_txt = cur_span->txt; in lv_draw_span()
814 cur_txt = cur_span->txt; in lv_draw_span()
854 snippet.txt = &cur_txt[cur_txt_ofs]; in lv_draw_span()
881 if(last_snippet->txt[last_snippet->bytes] == '\0') { in lv_draw_span()
889 if(last_snippet->txt[last_snippet->bytes] != '\0') { in lv_draw_span()
890 last_snippet->bytes = strlen(last_snippet->txt); in lv_draw_span()
891 … last_snippet->txt_w = lv_txt_get_width(last_snippet->txt, last_snippet->bytes, last_snippet->font, in lv_draw_span()
927 const char * bidi_txt = pinfo->txt; in lv_draw_span()