Searched refs:max_value (Results 1 – 7 of 7) sorted by relevance
/lvgl-latest/tests/src/test_cases/ |
D | test_bar.c | 206 int32_t max_value = lv_bar_get_max_value(bar); in test_bar_current_value_should_be_truncated_to_max_value_when_exceeds_it() local 207 int32_t new_value = max_value + 1u; in test_bar_current_value_should_be_truncated_to_max_value_when_exceeds_it() 210 TEST_ASSERT_EQUAL_INT32(max_value, lv_bar_get_value(bar)); in test_bar_current_value_should_be_truncated_to_max_value_when_exceeds_it()
|
/lvgl-latest/src/widgets/ |
D | lv_arc.c | 238 new_value = value > arc->max_value ? arc->max_value : value; in lv_arc_set_value() 252 if(arc->min_value == min && arc->max_value == max) return; in lv_arc_set_range() 255 arc->max_value = max; in lv_arc_set_range() 318 return ((lv_arc_t *) obj)->max_value; in lv_arc_get_max_value() 400 arc->max_value = 100; in lv_arc_constructor() 544 int32_t round = ((bg_end - arc->bg_angle_start) * 8) / (arc->max_value - arc->min_value); in lv_arc_event() 552 … int16_t new_value = lv_map(angle, arc->bg_angle_start, bg_end, arc->min_value, arc->max_value); in lv_arc_event() 563 if(new_value == arc->min_value || new_value == arc->max_value) { in lv_arc_event() 855 range_midpoint = (int32_t)(arc->min_value + arc->max_value) / 2; in value_update() 863 angle = lv_map(arc->value, range_midpoint, arc->max_value, bg_midpoint, bg_end); in value_update() [all …]
|
D | lv_bar.c | 97 value = LV_CLAMP(bar->min_value, value, bar->max_value); in lv_bar_set_value() 114 value = LV_CLAMP(bar->min_value, value, bar->max_value); in lv_bar_set_start_value() 127 if(bar->min_value == min && bar->max_value == max) return; in lv_bar_set_range() 129 bar->max_value = max; in lv_bar_set_range() 193 return bar->max_value; in lv_bar_get_max_value() 215 bar->max_value = 100; in lv_bar_constructor() 261 int32_t range = bar->max_value - bar->min_value; in draw_indic() 264 if(bar->mode == LV_BAR_MODE_SYMMETRICAL && bar->min_value < 0 && bar->max_value > 0 && in draw_indic()
|
D | lv_bar.h | 51 int32_t max_value; /**< Maximum value of the bar*/ member
|
D | lv_arc.h | 46 int16_t max_value; /*Maximum value of the arc*/ member
|
D | lv_slider.c | 200 const int32_t range = slider->bar.max_value - slider->bar.min_value; in lv_slider_event() 230 int32_t real_max_value = slider->bar.max_value; in lv_slider_event() 345 slider->bar.max_value > 0) is_symmetrical = true; in draw_knob()
|
/lvgl-latest/demos/widgets/ |
D | lv_demo_widgets.py | 94 max_value = bar.get_max_value() 96 if val > max_value: 99 cpy_string = "Copying %d/%d"% (val, max_value)
|