Home
last modified time | relevance | path

Searched refs:opt_txt (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/src/widgets/
Dlv_roller.c238 const char * opt_txt = lv_label_get_text(label); in lv_roller_get_selected_str() local
239 size_t txt_len = strlen(opt_txt); in lv_roller_get_selected_str()
242 if(opt_txt[i] == '\n') line++; in lv_roller_get_selected_str()
246 for(c = 0; i < txt_len && opt_txt[i] != '\n'; c++, i++) { in lv_roller_get_selected_str()
251 buf[c] = opt_txt[i]; in lv_roller_get_selected_str()
Dlv_dropdown.c795 const char * opt_txt; in draw_main() local
796 if(dropdown->text) opt_txt = dropdown->text; in draw_main()
800 opt_txt = buf; 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()
886 lv_draw_label(draw_ctx, &label_dsc, &txt_area, opt_txt, NULL); in draw_main()
889 lv_mem_buf_release((char *)opt_txt); in draw_main()