Home
last modified time | relevance | path

Searched refs:max_value (Results 1 – 7 of 7) sorted by relevance

/lvgl-2.7.6/src/lv_widgets/
Dlv_linemeter.c74 ext->max_value = 100; in lv_linemeter_create()
96 ext->max_value = copy_ext->max_value; in lv_linemeter_create()
126 ext->cur_value = value > ext->max_value ? ext->max_value : value; in lv_linemeter_set_value()
130 …(int32_t)((int32_t)(old_value - ext->min_value) * (ext->line_cnt - 1)) / (ext->max_value - ext->mi… in lv_linemeter_set_value()
132 …nt32_t)(ext->cur_value - ext->min_value) * (ext->line_cnt - 1)) / (ext->max_value - ext->min_value… in lv_linemeter_set_value()
224 if(ext->min_value == min && ext->max_value == max) return; in lv_linemeter_set_range()
226 ext->max_value = max; in lv_linemeter_set_range()
328 return ext->max_value; in lv_linemeter_get_max_value()
397 …(int32_t)((int32_t)(ext->max_value - ext->cur_value) * (ext->line_cnt - 1)) / (ext->max_value - ex… in lv_linemeter_draw_scale()
398 …nt32_t)(ext->cur_value - ext->min_value) * (ext->line_cnt - 1)) / (ext->max_value - ext->min_value… in lv_linemeter_draw_scale()
Dlv_bar.c98 ext->max_value = 100; in lv_bar_create()
126 ext->max_value = ext_copy->max_value; in lv_bar_create()
161 new_value = value > ext->max_value ? ext->max_value : value; in lv_bar_set_value()
188 new_value = start_value > ext->max_value ? ext->max_value : start_value; in lv_bar_set_start_value()
211 if(ext->min_value == min && ext->max_value == max) return; in lv_bar_set_range()
213 ext->max_value = max; in lv_bar_set_range()
321 return ext->max_value; in lv_bar_get_max_value()
433 int32_t range = ext->max_value - ext->min_value; in draw_indic()
436 if(ext->type == LV_BAR_TYPE_SYMMETRICAL && ext->min_value < 0 && ext->max_value > 0 && in draw_indic()
Dlv_arc.c89 ext->max_value = 100; in lv_arc_create()
122 ext->max_value = copy_ext->max_value; in lv_arc_create()
397 new_value = value > ext->max_value ? ext->max_value : value; in lv_arc_set_value()
417 if(ext->min_value == min && ext->max_value == max) return; in lv_arc_set_range()
420 ext->max_value = max; in lv_arc_set_range()
562 return ext->max_value; in lv_arc_get_max_value()
781 int32_t round = ((bg_end - ext->bg_angle_start) * 8) / (ext->max_value - ext->min_value); in lv_arc_signal()
787 … int16_t new_value = _lv_map(angle, ext->bg_angle_start, bg_end, ext->min_value, ext->max_value); in lv_arc_signal()
798 if(new_value == ext->min_value || new_value == ext->max_value) { in lv_arc_signal()
1032 int32_t range_midpoint = (int32_t)(ext->min_value + ext->max_value) / 2; in get_knob_area()
[all …]
Dlv_linemeter.h38 int32_t max_value; member
Dlv_bar.h69 int16_t max_value; /*Maximum value of the bar*/ member
Dlv_arc.h50 int16_t max_value; /*Maximum value of the arc*/ member
Dlv_slider.c180 …if(ext->bar.type == LV_BAR_TYPE_SYMMETRICAL && ext->bar.min_value < 0 && ext->bar.max_value > 0) s… in lv_slider_design()
341 int32_t range = ext->bar.max_value - ext->bar.min_value; in lv_slider_signal()
343 int16_t real_max_value = ext->bar.max_value; in lv_slider_signal()