Lines Matching refs:new_value
198 int32_t new_value = 0; in lv_slider_event() local
209 new_value = (obj->coords.x2 - bg_right) - p.x; in lv_slider_event()
213 new_value = p.x - (obj->coords.x1 + bg_left); in lv_slider_event()
215 new_value = (new_value * range + indic_w / 2) / indic_w; in lv_slider_event()
216 new_value += slider->bar.min_value; in lv_slider_event()
225 new_value = p.y - (obj->coords.y2 + bg_bottom); in lv_slider_event()
226 new_value = (-new_value * range + indic_h / 2) / indic_h; in lv_slider_event()
227 new_value += slider->bar.min_value; in lv_slider_event()
240 new_value = LV_CLAMP(real_min_value, new_value, real_max_value); in lv_slider_event()
241 if(*slider->value_to_set != new_value) { in lv_slider_event()
243 lv_bar_set_start_value(obj, new_value, LV_ANIM_ON); in lv_slider_event()
246 lv_bar_set_value(obj, new_value, LV_ANIM_ON); in lv_slider_event()