Lines Matching refs:step

110 void lv_spinbox_set_step(lv_obj_t * obj, uint32_t step)  in lv_spinbox_set_step()  argument
115 spinbox->step = step; in lv_spinbox_set_step()
141 if(pos <= 0) spinbox->step = 1; in lv_spinbox_set_cursor_pos()
142 else if(new_step <= step_limit) spinbox->step = new_step; in lv_spinbox_set_cursor_pos()
172 return spinbox->step; in lv_spinbox_get_step()
184 const int32_t new_step = spinbox->step / 10; in lv_spinbox_step_next()
185 spinbox->step = (new_step > 0) ? new_step : 1; in lv_spinbox_step_next()
196 const int32_t new_step = spinbox->step * 10; in lv_spinbox_step_prev()
197 if(new_step <= step_limit) spinbox->step = new_step; in lv_spinbox_step_prev()
218 if((spinbox->value < 0) && (spinbox->value + spinbox->step) > 0) { in lv_spinbox_increment()
219 v = -(spinbox->step + spinbox->value); in lv_spinbox_increment()
222 if(v + spinbox->step <= spinbox->range_max) { in lv_spinbox_increment()
223 v += spinbox->step; in lv_spinbox_increment()
247 if((spinbox->value > 0) && (spinbox->value - spinbox->step) < 0) { in lv_spinbox_decrement()
248 v = spinbox->step - spinbox->value; in lv_spinbox_decrement()
251 if(v - spinbox->step >= spinbox->range_min) { in lv_spinbox_decrement()
252 v -= spinbox->step; in lv_spinbox_decrement()
283 spinbox->step = 1; in lv_spinbox_constructor()
315 if(spinbox->step > 1) { in lv_spinbox_event()
320 spinbox->step = lv_pow(10, spinbox->digit_count - 2); in lv_spinbox_event()
325 if(spinbox->step < lv_pow(10, spinbox->digit_count - 1)) { in lv_spinbox_event()
330 spinbox->step = 10; in lv_spinbox_event()
365 spinbox->step = 1; in lv_spinbox_event()
367 for(i = 0; i < pos; i++) spinbox->step *= 10; in lv_spinbox_event()
460 int32_t step = spinbox->step; in lv_spinbox_updatevalue() local
462 while(step >= 10) { in lv_spinbox_updatevalue()
463 step /= 10; in lv_spinbox_updatevalue()