Home
last modified time | relevance | path

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

12

/lvgl-latest/examples/others/monkey/
Dlv_example_monkey_2.c11 config.period_range.max = 500; in lv_example_monkey_2()
13 config.input_range.max = 5; in lv_example_monkey_2()
Dlv_example_monkey_3.c14 config.period_range.max = 500; in lv_example_monkey_3()
16 config.input_range.max = sizeof(btn_points) / sizeof(lv_point_t) - 1; in lv_example_monkey_3()
Dlv_example_monkey_1.c11 config.period_range.max = 100; in lv_example_monkey_1()
/lvgl-latest/src/extra/others/monkey/
Dlv_monkey.h36 uint32_t max; member
42 int32_t max; member
Dlv_monkey.c65 config->period_range.max = MONKEY_PERIOD_RANGE_MAX_DEF; in lv_monkey_config_init()
168 …c_diff = (int16_t)lv_monkey_random(monkey->config.input_range.min, monkey->config.input_range.max); in lv_monkey_timer_cb()
171 …tn_id = (uint32_t)lv_monkey_random(monkey->config.input_range.min, monkey->config.input_range.max); in lv_monkey_timer_cb()
184 …monkey->timer, lv_monkey_random(monkey->config.period_range.min, monkey->config.period_range.max)); in lv_monkey_timer_cb()
/lvgl-latest/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-latest/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()
129 bar->max_value = max; in lv_bar_set_range()
135 if(bar->cur_value > max) { in lv_bar_set_range()
136 bar->cur_value = max; in lv_bar_set_range()
Dlv_arc.h158 void lv_arc_set_range(lv_obj_t * obj, int16_t min, int16_t max);
Dlv_arc.c247 void lv_arc_set_range(lv_obj_t * obj, int16_t min, int16_t max) in lv_arc_set_range() argument
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()
260 if(arc->value > max) { in lv_arc_set_range()
261 arc->value = max; in lv_arc_set_range()
/lvgl-latest/src/extra/widgets/meter/
Dlv_meter.c78 scale->max = 100; 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
112 scale->max = max; 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()
447 int32_t value_of_line = lv_map(i, 0, scale->tick_cnt - 1, scale->min, scale->max); in draw_ticks_and_labels()
471 … ratio = lv_map(value_of_line, scale->min, scale->max, LV_OPA_TRANSP, LV_OPA_COVER); in draw_ticks_and_labels()
582 …int32_t angle = lv_map(indic->end_value, scale->min, scale->max, scale->rotation, scale->rotation … in draw_needles()
602 …int32_t angle = lv_map(indic->end_value, scale->min, scale->max, scale->rotation, scale->rotation … in draw_needles()
644 …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 max; member
170 void lv_meter_set_scale_range(lv_obj_t * obj, lv_meter_scale_t * scale, int32_t min, int32_t max, u…
/lvgl-latest/scripts/
Dcode-format.cfg14 --max-code-length=120
19 --max-continuation-indent=120
/lvgl-latest/examples/widgets/menu/
Dlv_example_menu_5.c16 … const char * icon, const char * txt, int32_t min, int32_t max, int32_t val);
171 …t * create_slider(lv_obj_t * parent, const char * icon, const char * txt, int32_t min, int32_t max, in create_slider() argument
178 lv_slider_set_range(slider, min, max); in create_slider()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_gradient.c306 int32_t max = (dsc->stops[dsc->stops_count - 1].frac * range) >> 8; in lv_gradient_calculate() local
307 if(frac >= max) { in lv_gradient_calculate()
320 max = (dsc->stops[i].frac * range) >> 8; in lv_gradient_calculate()
321 d = max - min; in lv_gradient_calculate()
/lvgl-latest/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_…
452 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
488 if(x_child >= min && x_child <= max) { in find_snap_point_x()
507 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
543 if(y_child >= min && y_child <= max) { in find_snap_point_y()
/lvgl-latest/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-latest/demos/benchmark/
Dlv_demo_benchmark.c100 static int32_t rnd_next(int32_t min, int32_t max);
1177 static int32_t rnd_next(int32_t min, int32_t max) in rnd_next() argument
1179 if(min == max) in rnd_next()
1182 if(min > max) { in rnd_next()
1184 min = max; in rnd_next()
1185 max = t; in rnd_next()
1188 int32_t d = max - min; in rnd_next()
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.c128 void lv_chart_set_range(lv_obj_t * obj, lv_chart_axis_t axis, lv_coord_t min, lv_coord_t max) in lv_chart_set_range() argument
132 max = max == min ? max + 1 : max; in lv_chart_set_range()
138 chart->ymax[0] = max; in lv_chart_set_range()
142 chart->ymax[1] = max; in lv_chart_set_range()
146 chart->xmax[0] = max; in lv_chart_set_range()
150 chart->xmax[1] = max; in lv_chart_set_range()
Dlv_chart.h167 void lv_chart_set_range(lv_obj_t * obj, lv_chart_axis_t axis, lv_coord_t min, lv_coord_t max);
/lvgl-latest/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…
/lvgl-latest/docs/widgets/extra/
Dmeter.md27 `lv_meter_set_scale_range(meter, scale, min, max, angle_range, rotation)` sets the value and angle …

12