Home
last modified time | relevance | path

Searched refs:max (Results 1 – 13 of 13) sorted by relevance

/lvgl-2.7.6/src/lv_widgets/
Dlv_gauge.c190 int16_t max = lv_gauge_get_max_value(gauge); in lv_gauge_set_value() local
192 if(value > max) in lv_gauge_set_value()
193 value = max; in lv_gauge_set_value()
227 int16_t needle_angle = (old_value - min) * angle / (max - min) + angle_ofs; in lv_gauge_set_value()
239 needle_angle = (value - min) * angle / (max - min) + angle_ofs; in lv_gauge_set_value()
524 int32_t max = lv_gauge_get_max_value(gauge); in lv_gauge_draw_labels() local
541 int32_t scale_act = (int32_t)((int32_t)(max - min) * i) / (label_num - 1); in lv_gauge_draw_labels()
583 int16_t max = lv_gauge_get_max_value(gauge); in lv_gauge_draw_needle() local
597 (ext->values[i] - min) * angle / (max - min) + angle_ofs; in lv_gauge_draw_needle()
Dlv_slider.h105 static inline void lv_slider_set_range(lv_obj_t * slider, int16_t min, int16_t max) in lv_slider_set_range() argument
107 lv_bar_set_range(slider, min, max); in lv_slider_set_range()
Dlv_gauge.h103 static inline void lv_gauge_set_range(lv_obj_t * gauge, int32_t min, int32_t max) in lv_gauge_set_range() argument
105 lv_linemeter_set_range(gauge, min, max); in lv_gauge_set_range()
Dlv_linemeter.c219 void lv_linemeter_set_range(lv_obj_t * lmeter, int32_t min, int32_t max) in lv_linemeter_set_range() argument
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()
228 if(ext->cur_value > max) { in lv_linemeter_set_range()
229 ext->cur_value = max; in lv_linemeter_set_range()
Dlv_bar.c206 void lv_bar_set_range(lv_obj_t * bar, int16_t min, int16_t max) in lv_bar_set_range() argument
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()
219 if(ext->cur_value > max) { in lv_bar_set_range()
220 ext->cur_value = max; in lv_bar_set_range()
Dlv_linemeter.h80 void lv_linemeter_set_range(lv_obj_t * lmeter, int32_t min, int32_t max);
Dlv_bar.h127 void lv_bar_set_range(lv_obj_t * bar, int16_t min, int16_t max);
Dlv_arc.h161 void lv_arc_set_range(lv_obj_t * arc, int16_t min, int16_t max);
Dlv_arc.c412 void lv_arc_set_range(lv_obj_t * arc, int16_t min, int16_t max) in lv_arc_set_range() argument
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()
425 if(ext->cur_value > max) { in lv_arc_set_range()
426 ext->cur_value = max; in lv_arc_set_range()
/lvgl-2.7.6/scripts/
Dcode-format.cfg14 --max-code-length=120
19 --max-continuation-indent=120
/lvgl-2.7.6/src/lv_misc/
Dlv_math.h122 int16_t _lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min, int32_t max);
/lvgl-2.7.6/docs/
DROADMAP.md16 - Add snap stop to scroll max 1 snap point
/lvgl-2.7.6/src/lv_draw/
Dlv_draw_rect.c513 int32_t max = (dsc->bg_grad_color_stop * s) >> 8; in grad_get() local
514 if(i >= max) return dsc->bg_grad_color; in grad_get()