Home
last modified time | relevance | path

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

/lvgl-latest/src/widgets/roller/
Dlv_roller.c140 roller->option_cnt = 0; in lv_roller_set_options()
143 if(options[cnt] == '\n') roller->option_cnt++; in lv_roller_set_options()
145 roller->option_cnt++; /*Last option has no `\n`*/ in lv_roller_set_options()
155 …int32_t normal_h = roller->option_cnt * (lv_font_get_line_height(font) + lv_obj_get_style_text_let… in lv_roller_set_options()
177 roller->sel_opt_id = ((roller->inf_page_cnt / 2) + 0) * roller->option_cnt; in lv_roller_set_options()
179 roller->option_cnt = roller->option_cnt * roller->inf_page_cnt; in lv_roller_set_options()
201 uint32_t real_option_cnt = roller->option_cnt / roller->inf_page_cnt; in lv_roller_set_selected()
217 roller->sel_opt_id = sel_opt < roller->option_cnt ? sel_opt : roller->option_cnt - 1; in lv_roller_set_selected()
270 uint32_t real_id_cnt = roller->option_cnt / roller->inf_page_cnt; in lv_roller_get_selected()
323 return roller->option_cnt / roller->inf_page_cnt; in lv_roller_get_option_count()
[all …]
Dlv_roller_private.h32 uint32_t option_cnt; /**< Number of options*/ member
/lvgl-latest/src/widgets/dropdown/
Dlv_dropdown.c187 dropdown->option_cnt = 0; in lv_dropdown_set_options()
190 if(options[i] == '\n') dropdown->option_cnt++; in lv_dropdown_set_options()
192 dropdown->option_cnt++; /*Last option has no `\n`*/ in lv_dropdown_set_options()
234 dropdown->option_cnt = 0; in lv_dropdown_set_options_static()
237 if(options[i] == '\n') dropdown->option_cnt++; in lv_dropdown_set_options_static()
239 dropdown->option_cnt++; /*Last option has no `\n`*/ in lv_dropdown_set_options_static()
299 if((insert_pos > 0) && (pos >= dropdown->option_cnt)) in lv_dropdown_add_option()
311 if(pos < dropdown->option_cnt) lv_strcat(ins_buf, "\n"); in lv_dropdown_add_option()
316 dropdown->option_cnt++; in lv_dropdown_add_option()
333 dropdown->option_cnt = 0; in lv_dropdown_clear_options()
[all …]
Dlv_dropdown_private.h40 uint32_t option_cnt; /**< Number of options*/ member