Home
last modified time | relevance | path

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

/lvgl-latest/src/widgets/dropdown/
Dlv_dropdown.c303 char * ins_buf = lv_malloc(ins_len + 2); /*+ 2 for terminating NULL and possible \n*/ in lv_dropdown_add_option() local
304 LV_ASSERT_MALLOC(ins_buf); in lv_dropdown_add_option()
305 if(ins_buf == NULL) return; in lv_dropdown_add_option()
307 lv_strcpy(ins_buf, option); in lv_dropdown_add_option()
309 lv_text_ap_proc(option, ins_buf); in lv_dropdown_add_option()
311 if(pos < dropdown->option_cnt) lv_strcat(ins_buf, "\n"); in lv_dropdown_add_option()
313 …v_text_ins(dropdown->options, lv_text_encoded_get_char_id(dropdown->options, insert_pos), ins_buf); in lv_dropdown_add_option()
314 lv_free(ins_buf); in lv_dropdown_add_option()