Lines Matching refs:step
126 void lv_spinbox_set_step(lv_obj_t * obj, uint32_t step) in lv_spinbox_set_step() argument
131 spinbox->step = step; in lv_spinbox_set_step()
166 int32_t new_step = spinbox->step * lv_pow(10, pos); in lv_spinbox_set_cursor_pos()
167 if(pos <= 0) spinbox->step = 1; in lv_spinbox_set_cursor_pos()
168 else if(new_step <= step_limit) spinbox->step = new_step; in lv_spinbox_set_cursor_pos()
212 return spinbox->step; in lv_spinbox_get_step()
228 int32_t new_step = spinbox->step / 10; in lv_spinbox_step_next()
230 spinbox->step = new_step; in lv_spinbox_step_next()
232 spinbox->step = 1; in lv_spinbox_step_next()
247 int32_t new_step = spinbox->step * 10; in lv_spinbox_step_prev()
248 if(new_step <= step_limit) spinbox->step = new_step; in lv_spinbox_step_prev()
274 if(spinbox->value + spinbox->step <= spinbox->range_max) { in lv_spinbox_increment()
276 … if((spinbox->value + spinbox->step) > 0 && spinbox->value < 0) spinbox->value = -spinbox->value; in lv_spinbox_increment()
277 spinbox->value += spinbox->step; in lv_spinbox_increment()
300 if(spinbox->value - spinbox->step >= spinbox->range_min) { in lv_spinbox_decrement()
302 … if((spinbox->value - spinbox->step) < 0 && spinbox->value > 0) spinbox->value = -spinbox->value; in lv_spinbox_decrement()
303 spinbox->value -= spinbox->step; in lv_spinbox_decrement()
331 spinbox->step = 1; in lv_spinbox_constructor()
364 if(spinbox->step > 1) { in lv_spinbox_event()
369 spinbox->step = lv_pow(10, spinbox->digit_count - 2); in lv_spinbox_event()
374 if(spinbox->step < lv_pow(10, spinbox->digit_count - 1)) { in lv_spinbox_event()
379 spinbox->step = 10; in lv_spinbox_event()
410 spinbox->step = 1; in lv_spinbox_event()
412 for(i = 0; i < pos; i++) spinbox->step *= 10; in lv_spinbox_event()
499 int32_t step = spinbox->step; in lv_spinbox_updatevalue() local
501 while(step >= 10) { in lv_spinbox_updatevalue()
502 step /= 10; in lv_spinbox_updatevalue()