Searched refs:option_cnt (Results 1 – 4 of 4) sorted by relevance
108 roller->option_cnt = 0; in lv_roller_set_options()111 if(options[cnt] == '\n') roller->option_cnt++; in lv_roller_set_options()113 roller->option_cnt++; /*Last option has no `\n`*/ in lv_roller_set_options()133 roller->sel_opt_id = ((LV_ROLLER_INF_PAGES / 2) + 0) * roller->option_cnt; in lv_roller_set_options()135 roller->option_cnt = roller->option_cnt * LV_ROLLER_INF_PAGES; in lv_roller_set_options()164 uint32_t real_option_cnt = roller->option_cnt / LV_ROLLER_INF_PAGES; in lv_roller_set_selected()180 roller->sel_opt_id = sel_opt < roller->option_cnt ? sel_opt : roller->option_cnt - 1; in lv_roller_set_selected()216 uint16_t real_id_cnt = roller->option_cnt / LV_ROLLER_INF_PAGES; in lv_roller_get_selected()282 return roller->option_cnt / LV_ROLLER_INF_PAGES; in lv_roller_get_option_cnt()285 return roller->option_cnt; in lv_roller_get_option_cnt()[all …]
122 dropdown->option_cnt = 0; in lv_dropdown_set_options()125 if(options[i] == '\n') dropdown->option_cnt++; in lv_dropdown_set_options()127 dropdown->option_cnt++; /*Last option has no `\n`*/ in lv_dropdown_set_options()169 dropdown->option_cnt = 0; in lv_dropdown_set_options_static()172 if(options[i] == '\n') dropdown->option_cnt++; in lv_dropdown_set_options_static()174 dropdown->option_cnt++; /*Last option has no `\n`*/ in lv_dropdown_set_options_static()238 if((insert_pos > 0) && (pos >= dropdown->option_cnt)) in lv_dropdown_add_option()250 if(pos < dropdown->option_cnt) strcat(ins_buf, "\n"); in lv_dropdown_add_option()255 dropdown->option_cnt++; in lv_dropdown_add_option()272 dropdown->option_cnt = 0; in lv_dropdown_clear_options()[all …]
46 uint16_t option_cnt; /**< Number of options*/ member
44 uint16_t option_cnt; /**< Number of options*/ member