Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 32) sorted by relevance

12

/lvgl-3.5.0/src/extra/others/monkey/
Dlv_monkey.c64 config->period_range.min = MONKEY_PERIOD_RANGE_MIN_DEF; in lv_monkey_config_init()
83 monkey->timer = lv_timer_create(lv_monkey_timer_cb, monkey->config.period_range.min, monkey); in lv_monkey_create()
168 …data->enc_diff = (int16_t)lv_monkey_random(monkey->config.input_range.min, monkey->config.input_ra… in lv_monkey_timer_cb()
171 …data->btn_id = (uint32_t)lv_monkey_random(monkey->config.input_range.min, monkey->config.input_ran… in lv_monkey_timer_cb()
184 …lv_timer_set_period(monkey->timer, lv_monkey_random(monkey->config.period_range.min, monkey->confi… in lv_monkey_timer_cb()
Dlv_monkey.h35 uint32_t min; member
41 int32_t min; member
/lvgl-3.5.0/examples/others/monkey/
Dlv_example_monkey_2.c10 config.period_range.min = 50; in lv_example_monkey_2()
12 config.input_range.min = -5; in lv_example_monkey_2()
Dlv_example_monkey_3.c13 config.period_range.min = 50; in lv_example_monkey_3()
15 config.input_range.min = 0; in lv_example_monkey_3()
Dlv_example_monkey_1.c10 config.period_range.min = 10; in lv_example_monkey_1()
/lvgl-3.5.0/src/misc/
Dlv_math.h116 uint32_t lv_rand(uint32_t min, uint32_t max);
129 #define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max)))) argument
Dlv_math.c257 uint32_t lv_rand(uint32_t min, uint32_t max) in lv_rand() argument
268 return (a % (max - min + 1)) + min; in lv_rand()
/lvgl-3.5.0/src/widgets/
Dlv_slider.h106 static inline void lv_slider_set_range(lv_obj_t * obj, int32_t min, int32_t max) in lv_slider_set_range() argument
108 lv_bar_set_range(obj, min, max); in lv_slider_set_range()
Dlv_bar.h106 void lv_bar_set_range(lv_obj_t * obj, int32_t min, int32_t max);
Dlv_bar.c121 void lv_bar_set_range(lv_obj_t * obj, int32_t min, int32_t max) in lv_bar_set_range() argument
127 if(bar->min_value == min && bar->max_value == max) return; in lv_bar_set_range()
130 bar->min_value = min; in lv_bar_set_range()
133 bar->start_value = min; in lv_bar_set_range()
139 if(bar->cur_value < min) { in lv_bar_set_range()
140 bar->cur_value = min; in lv_bar_set_range()
Dlv_arc.h157 void lv_arc_set_range(lv_obj_t * obj, int16_t min, int16_t max);
Dlv_arc.c242 void lv_arc_set_range(lv_obj_t * obj, int16_t min, int16_t max) in lv_arc_set_range() argument
247 if(arc->min_value == min && arc->max_value == max) return; in lv_arc_set_range()
249 arc->min_value = min; in lv_arc_set_range()
252 if(arc->value < min) { in lv_arc_set_range()
253 arc->value = min; in lv_arc_set_range()
/lvgl-3.5.0/src/extra/widgets/meter/
Dlv_meter.c77 scale->min = 0; in lv_meter_add_scale()
108 void lv_meter_set_scale_range(lv_obj_t * obj, lv_meter_scale_t * scale, int32_t min, int32_t max, u… in lv_meter_set_scale_range() argument
111 scale->min = min; in lv_meter_set_scale_range()
358 int32_t start_angle = lv_map(indic->start_value, scale->min, scale->max, scale->rotation, in draw_arcs()
360 int32_t end_angle = lv_map(indic->end_value, scale->min, scale->max, scale->rotation, in draw_arcs()
445 int32_t value_of_line = lv_map(i, 0, scale->tick_cnt - 1, scale->min, scale->max); in draw_ticks_and_labels()
469 … ratio = lv_map(value_of_line, scale->min, scale->max, LV_OPA_TRANSP, LV_OPA_COVER); in draw_ticks_and_labels()
579 …int32_t angle = lv_map(indic->end_value, scale->min, scale->max, scale->rotation, scale->rotation … in draw_needles()
599 …int32_t angle = lv_map(indic->end_value, scale->min, scale->max, scale->rotation, scale->rotation … in draw_needles()
641 …int32_t start_angle = lv_map(old_value, scale->min, scale->max, scale->rotation, scale->angle_rang… in inv_arc()
[all …]
Dlv_meter.h47 int32_t min; member
171 void lv_meter_set_scale_range(lv_obj_t * obj, lv_meter_scale_t * scale, int32_t min, int32_t max, u…
/lvgl-3.5.0/src/draw/sw/
Dlv_draw_sw_gradient.c302 int32_t min = (dsc->stops[0].frac * range) >> 8; in lv_gradient_calculate() local
303 if(frac <= min) { in lv_gradient_calculate()
321 min = (dsc->stops[i - 1].frac * range) >> 8; in lv_gradient_calculate()
323 d = max - min; in lv_gradient_calculate()
331 frac -= min; in lv_gradient_calculate()
/lvgl-3.5.0/examples/widgets/menu/
Dlv_example_menu_5.c16 … const char * icon, const char * txt, int32_t min, int32_t max, int32_t val);
171 static lv_obj_t * create_slider(lv_obj_t * parent, const char * icon, const char * txt, int32_t min in create_slider() argument
178 lv_slider_set_range(slider, min, max); in create_slider()
/lvgl-3.5.0/demos/benchmark/
Dlv_demo_benchmark.c100 static int32_t rnd_next(int32_t min, int32_t max);
1185 static int32_t rnd_next(int32_t min, int32_t max) in rnd_next() argument
1187 if(min == max) in rnd_next()
1188 return min; in rnd_next()
1190 if(min > max) { in rnd_next()
1191 int32_t t = min; in rnd_next()
1192 min = max; in rnd_next()
1196 int32_t d = max - min; in rnd_next()
1197 int32_t r = (rnd_map[rnd_act] % d) + min; in rnd_next()
/lvgl-3.5.0/scripts/
Dcode-format.cfg18 --min-conditional-indent=0
/lvgl-3.5.0/src/core/
Dlv_indev_scroll.c26 static lv_coord_t find_snap_point_x(const lv_obj_t * obj, lv_coord_t min, lv_coord_t max, lv_coord_…
27 static lv_coord_t find_snap_point_y(const lv_obj_t * obj, lv_coord_t min, lv_coord_t max, lv_coord_…
455 static lv_coord_t find_snap_point_x(const lv_obj_t * obj, lv_coord_t min, lv_coord_t max, lv_coord_… in find_snap_point_x() argument
491 if(x_child >= min && x_child <= max) { in find_snap_point_x()
510 static lv_coord_t find_snap_point_y(const lv_obj_t * obj, lv_coord_t min, lv_coord_t max, lv_coord_… in find_snap_point_y() argument
546 if(y_child >= min && y_child <= max) { in find_snap_point_y()
/lvgl-3.5.0/docs/widgets/core/
Dslider.md18 To specify the range (min, max values), `lv_slider_set_range(slider, min , max)` can be used.
Dbar.md20 … a range (minimum and maximum values) which can be modified with `lv_bar_set_range(bar, min, max)`.
/lvgl-3.5.0/examples/widgets/chart/
Dlv_example_chart_2.py34 a.y1 = min(dsc.p1.y, dsc.p2.y)
Dlv_example_chart_8.py42 a.y1 = min(dsc.p1.y, dsc.p2.y)
/lvgl-3.5.0/src/extra/widgets/chart/
Dlv_chart.h168 void lv_chart_set_range(lv_obj_t * obj, lv_chart_axis_t axis, lv_coord_t min, lv_coord_t max);
/lvgl-3.5.0/docs/overview/
Dcoords.md8 - support min-width, max-width, min-height, max-height
281 Similarly to CSS, LVGL also supports `min-width`, `max-width`, `min-height` and `max-height`. These…

12