/lvgl-3.7.0/src/misc/ |
D | lv_anim.c | 218 int32_t new_value; in lv_anim_path_linear() local 219 new_value = step * (a->end_value - a->start_value); in lv_anim_path_linear() 220 new_value = new_value >> LV_ANIM_RES_SHIFT; in lv_anim_path_linear() 221 new_value += a->start_value; in lv_anim_path_linear() 223 return new_value; in lv_anim_path_linear() 232 int32_t new_value; in lv_anim_path_ease_in() local 233 new_value = step * (a->end_value - a->start_value); in lv_anim_path_ease_in() 234 new_value = new_value >> LV_BEZIER_VAL_SHIFT; in lv_anim_path_ease_in() 235 new_value += a->start_value; in lv_anim_path_ease_in() 237 return new_value; in lv_anim_path_ease_in() [all …]
|
/lvgl-3.7.0/tests/src/test_cases/ |
D | test_slider.c | 54 int32_t new_value = lv_slider_get_value(slider); in test_slider_event_keys_right_and_up_increment_value_by_one() local 55 TEST_ASSERT_EQUAL_INT32(value + 1, new_value); in test_slider_event_keys_right_and_up_increment_value_by_one() 59 TEST_ASSERT_EQUAL_INT32(new_value + 1, lv_slider_get_value(slider)); in test_slider_event_keys_right_and_up_increment_value_by_one() 70 int32_t new_value = lv_slider_get_value(slider); in test_slider_event_keys_left_and_down_decrement_value_by_one() local 71 TEST_ASSERT_EQUAL_INT32(value - 1, new_value); in test_slider_event_keys_left_and_down_decrement_value_by_one() 75 TEST_ASSERT_EQUAL_INT32(new_value - 1, lv_slider_get_value(slider)); in test_slider_event_keys_left_and_down_decrement_value_by_one()
|
D | test_bar.c | 207 int32_t new_value = max_value + 1u; in test_bar_current_value_should_be_truncated_to_max_value_when_exceeds_it() local 209 lv_bar_set_value(bar, new_value, LV_ANIM_OFF); in test_bar_current_value_should_be_truncated_to_max_value_when_exceeds_it() 216 int32_t new_value = min_value - 1u; in test_bar_current_value_should_be_truncated_to_min_value_when_it_is_below_it() local 218 lv_bar_set_value(bar, new_value, LV_ANIM_OFF); in test_bar_current_value_should_be_truncated_to_min_value_when_it_is_below_it()
|
/lvgl-3.7.0/src/widgets/ |
D | lv_slider.c | 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() [all …]
|
D | lv_arc.c | 237 int16_t new_value; in lv_arc_set_value() local 238 new_value = value > arc->max_value ? arc->max_value : value; in lv_arc_set_value() 239 new_value = new_value < arc->min_value ? arc->min_value : new_value; in lv_arc_set_value() 241 if(arc->value == new_value) return; in lv_arc_set_value() 242 arc->value = new_value; in lv_arc_set_value() 552 … int16_t new_value = lv_map(angle, arc->bg_angle_start, bg_end, arc->min_value, arc->max_value); in lv_arc_event() local 553 if(new_value != lv_arc_get_value(obj)) { in lv_arc_event() 555 … lv_arc_set_value(obj, new_value); /*set_value caches the last_angle for the next iteration*/ in lv_arc_event() 556 if(new_value != old_value) { in lv_arc_event() 563 if(new_value == arc->min_value || new_value == arc->max_value) { in lv_arc_event()
|
D | lv_bar.c | 51 static void lv_bar_set_value_with_anim(lv_obj_t * obj, int32_t new_value, int32_t * value_ptr, 570 static void lv_bar_set_value_with_anim(lv_obj_t * obj, int32_t new_value, int32_t * value_ptr, in lv_bar_set_value_with_anim() argument 576 *value_ptr = new_value; in lv_bar_set_value_with_anim() 583 anim_info->anim_end = new_value; in lv_bar_set_value_with_anim() 588 anim_info->anim_end = new_value; in lv_bar_set_value_with_anim() 590 *value_ptr = new_value; in lv_bar_set_value_with_anim()
|
/lvgl-3.7.0/examples/anim/ |
D | lv_example_anim_3.c | 69 int32_t new_value; in anim_path_bezier3_cb() local 70 new_value = step * (a->end_value - a->start_value); in anim_path_bezier3_cb() 71 new_value = new_value >> 10; in anim_path_bezier3_cb() 72 new_value += a->start_value; in anim_path_bezier3_cb() 73 return new_value; in anim_path_bezier3_cb()
|
D | lv_example_anim_3.py | 118 new_value = step * (a.end_value - a.start_value) 119 new_value = new_value >> 10 120 new_value += a.start_value 121 return new_value
|
/lvgl-3.7.0/examples/others/msg/ |
D | lv_example_msg_3.c | 91 const int32_t * new_value = lv_msg_get_payload(m); in value_handler() local 92 value = *new_value; in value_handler()
|
/lvgl-3.7.0/docs/widgets/core/ |
D | bar.md | 19 A new value can be set by `lv_bar_set_value(bar, new_value, LV_ANIM_ON/OFF)`. 29 - `LV_BAR_MODE_RANGE` Allows setting the start value too by `lv_bar_set_start_value(bar, new_value,…
|
D | slider.md | 16 To set an initial value use `lv_slider_set_value(slider, new_value, LV_ANIM_ON/OFF)`. The animatio… 24 - `LV_SLIDER_RANGE` Allows setting the start value too by `lv_bar_set_start_value(bar, new_value, L…
|
D | arc.md | 17 A new value can be set using `lv_arc_set_value(arc, new_value)`.
|
/lvgl-3.7.0/src/extra/widgets/meter/ |
D | lv_meter.c | 32 …c void inv_arc(lv_obj_t * obj, lv_meter_indicator_t * indic, int32_t old_value, int32_t new_value); 628 …ic void inv_arc(lv_obj_t * obj, lv_meter_indicator_t * indic, int32_t old_value, int32_t new_value) in inv_arc() argument 645 …int32_t end_angle = lv_map(new_value, scale->min, scale->max, scale->rotation, scale->angle_range … in inv_arc()
|