Lines Matching refs:sel_opt_id
136 roller->sel_opt_id = 0; in lv_roller_set_options()
177 roller->sel_opt_id = ((roller->inf_page_cnt / 2) + 0) * roller->option_cnt; in lv_roller_set_options()
183 roller->sel_opt_id_ori = roller->sel_opt_id; in lv_roller_set_options()
202 uint32_t current_page = roller->sel_opt_id / real_option_cnt; in lv_roller_set_selected()
206 uint32_t act_opt = roller->sel_opt_id - current_page * real_option_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()
218 roller->sel_opt_id_ori = roller->sel_opt_id; in lv_roller_set_selected()
271 return roller->sel_opt_id % real_id_cnt; in lv_roller_get_selected()
274 return roller->sel_opt_id; in lv_roller_get_selected()
289 for(i = 0; i < txt_len && line != roller->sel_opt_id; i++) { in lv_roller_get_selected_str()
341 roller->sel_opt_id = 0; in lv_roller_constructor()
418 roller->sel_opt_id_ori = roller->sel_opt_id; in lv_roller_event()
421 if(roller->sel_opt_id != roller->sel_opt_id_ori) { in lv_roller_event()
422 roller->sel_opt_id = roller->sel_opt_id_ori; in lv_roller_event()
430 roller->sel_opt_id_ori = roller->sel_opt_id; in lv_roller_event()
435 if(roller->sel_opt_id != roller->sel_opt_id_ori) { in lv_roller_event()
436 roller->sel_opt_id = roller->sel_opt_id_ori; in lv_roller_event()
445 if(roller->sel_opt_id + 1 < roller->option_cnt) { in lv_roller_event()
447 lv_roller_set_selected(obj, roller->sel_opt_id + 1, LV_ANIM_ON); in lv_roller_event()
452 if(roller->sel_opt_id > 0) { in lv_roller_event()
454 lv_roller_set_selected(obj, roller->sel_opt_id - 1, LV_ANIM_ON); in lv_roller_event()
463 int32_t new_id = roller->sel_opt_id + r; in lv_roller_event()
465 if((int32_t)roller->sel_opt_id != new_id) { in lv_roller_event()
707 int32_t id = roller->sel_opt_id; in refr_position()
740 roller->sel_opt_id_ori = roller->sel_opt_id; in release_handler()
809 uint32_t id = roller->sel_opt_id; /*Just to use uint32_t in event data*/ in release_handler()
824 roller->sel_opt_id = roller->sel_opt_id % real_id_cnt; in inf_normalize()
825 roller->sel_opt_id += (roller->inf_page_cnt / 2) * real_id_cnt; /*Select the middle page*/ in inf_normalize()
827 roller->sel_opt_id_ori = roller->sel_opt_id % real_id_cnt; in inf_normalize()
838 int32_t sel_y1 = roller->sel_opt_id * (font_h + line_space); in inf_normalize()