/lvgl-3.5.0/src/misc/ |
D | lv_math.h | 125 #define LV_MAX(a, b) ((a) > (b) ? (a) : (b)) macro 126 #define LV_MAX3(a, b, c) (LV_MAX(LV_MAX(a,b), c)) 127 #define LV_MAX4(a, b, c, d) (LV_MAX(LV_MAX(a,b), LV_MAX(c,d))) 129 #define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max))))
|
D | lv_area.c | 132 res_p->x1 = LV_MAX(a1_p->x1, a2_p->x1); in _lv_area_intersect() 133 res_p->y1 = LV_MAX(a1_p->y1, a2_p->y1); in _lv_area_intersect() 156 a_res_p->x2 = LV_MAX(a1_p->x2, a2_p->x2); in _lv_area_join() 157 a_res_p->y2 = LV_MAX(a1_p->y2, a2_p->y2); in _lv_area_join()
|
/lvgl-3.5.0/demos/benchmark/ |
D | lv_demo_benchmark.c | 21 #define OBJ_SIZE_MIN (LV_MAX(LV_DPI_DEF / 20, 5)) 23 #define RADIUS LV_MAX(LV_DPI_DEF / 15, 2) 24 #define BORDER_WIDTH LV_MAX(LV_DPI_DEF / 40, 1) 25 #define SHADOW_WIDTH_SMALL LV_MAX(LV_DPI_DEF / 15, 5) 26 #define SHADOW_OFS_X_SMALL LV_MAX(LV_DPI_DEF / 20, 2) 27 #define SHADOW_OFS_Y_SMALL LV_MAX(LV_DPI_DEF / 20, 2) 28 #define SHADOW_SPREAD_SMALL LV_MAX(LV_DPI_DEF / 30, 2) 29 #define SHADOW_WIDTH_LARGE LV_MAX(LV_DPI_DEF / 5, 10) 30 #define SHADOW_OFS_X_LARGE LV_MAX(LV_DPI_DEF / 10, 5) 31 #define SHADOW_OFS_Y_LARGE LV_MAX(LV_DPI_DEF / 10, 5) [all …]
|
/lvgl-3.5.0/tests/src/test_cases/ |
D | test_line.c | 54 calculated_width = LV_MAX(points[point_idx].x, calculated_width); in test_line_size_should_be_updated_after_adding_points() 55 calculated_height = LV_MAX(points[point_idx].y, calculated_height); in test_line_size_should_be_updated_after_adding_points()
|
/lvgl-3.5.0/src/hal/ |
D | lv_hal.h | 29 #define _LV_DPX_CALC(dpi, n) ((n) == 0 ? 0 :LV_MAX((( (dpi) * (n) + 80) / 160), 1)) /*+80 for rou…
|
/lvgl-3.5.0/src/draw/sdl/ |
D | lv_draw_sdl_rect.c | 143 extension.x1 = LV_MAX(extension.x1, -dsc->shadow_ofs_x + ext); in lv_draw_sdl_draw_rect() 144 extension.x2 = LV_MAX(extension.x2, dsc->shadow_ofs_x + ext); in lv_draw_sdl_draw_rect() 145 extension.y1 = LV_MAX(extension.y1, -dsc->shadow_ofs_y + ext); in lv_draw_sdl_draw_rect() 146 extension.y2 = LV_MAX(extension.y2, dsc->shadow_ofs_y + ext); in lv_draw_sdl_draw_rect() 150 extension.x1 = LV_MAX(extension.x1, ext); in lv_draw_sdl_draw_rect() 151 extension.x2 = LV_MAX(extension.x2, ext); in lv_draw_sdl_draw_rect() 152 extension.y1 = LV_MAX(extension.y1, ext); in lv_draw_sdl_draw_rect() 153 extension.y2 = LV_MAX(extension.y2, ext); in lv_draw_sdl_draw_rect() 293 corner_area.x1 = LV_MAX(coords->x2 - frag_size + 1, coords->x1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners() 312 corner_area.y1 = LV_MAX(coords->y2 - frag_size + 1, coords->y1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners() [all …]
|
D | lv_draw_sdl_polygon.c | 63 poly_coords.x2 = LV_MAX(poly_coords.x2, polygon_param.cfg.points[i].x); in lv_draw_sdl_polygon() 64 poly_coords.y2 = LV_MAX(poly_coords.y2, polygon_param.cfg.points[i].y); in lv_draw_sdl_polygon()
|
D | lv_draw_sdl_composite.c | 190 lv_coord_t size = next_pow_of_2(LV_MAX(w, h)); in lv_draw_sdl_composite_texture_obtain()
|
/lvgl-3.5.0/src/draw/sw/ |
D | lv_draw_sw_line.c | 62 clip_line.x2 = LV_MAX(point1->x, point2->x) + dsc->width / 2; in lv_draw_sw_line() 64 clip_line.y2 = LV_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_sw_line() 121 blend_area.x2 = LV_MAX(point1->x, point2->x) - 1; in draw_line_hor() 209 blend_area.y2 = LV_MAX(point1->y, point2->y) - 1; in draw_line_ver() 321 blend_area.x2 = LV_MAX(p1.x, p2.x) + w; in draw_line_skew() 323 blend_area.y2 = LV_MAX(p1.y, p2.y) + w; in draw_line_skew()
|
D | lv_draw_sw_polygon.c | 83 poly_coords.x2 = LV_MAX(poly_coords.x2, p[i].x); in lv_draw_sw_polygon() 84 poly_coords.y2 = LV_MAX(poly_coords.y2, p[i].y); in lv_draw_sw_polygon()
|
D | lv_draw_sw_rect.c | 551 blend_area.x1 = LV_MAX(blend_area.x1, w_half); in draw_shadow() 594 blend_area.x1 = LV_MAX(blend_area.x1, w_half); in draw_shadow() 595 blend_area.y1 = LV_MAX(blend_area.y1, h_half + 1); in draw_shadow() 682 blend_area.y1 = LV_MAX(blend_area.y1, h_half + 1); in draw_shadow() 737 blend_area.y2 = LV_MAX(blend_area.y2, h_half); in draw_shadow() 738 blend_area.x1 = LV_MAX(blend_area.x1, w_half); in draw_shadow() 794 blend_area.y2 = LV_MAX(blend_area.y2, h_half); in draw_shadow() 878 blend_area.y1 = LV_MAX(blend_area.y1, h_half + 1); in draw_shadow() 1203 core_area.x1 = LV_MAX(outer_area->x1 + rout, inner_area->x1); in draw_border_generic() 1205 core_area.y1 = LV_MAX(outer_area->y1 + rout, inner_area->y1); in draw_border_generic() [all …]
|
D | lv_draw_sw_blend.c | 1004 fg.ch.red = LV_MAX(tmp, 0); in color_blend_true_color_subtractive() 1008 fg.ch.green = LV_MAX(tmp, 0); in color_blend_true_color_subtractive() 1011 tmp = LV_MAX(tmp, 0); in color_blend_true_color_subtractive() 1017 fg.ch.blue = LV_MAX(tmp, 0); in color_blend_true_color_subtractive()
|
/lvgl-3.5.0/src/core/ |
D | lv_obj_pos.c | 1022 child_res = LV_MAX(child_res, obj->coords.x2 - child->coords.x1 + 1); in calc_content_width() 1028 … child_res = LV_MAX(child_res, lv_area_get_width(&child->coords) + pad_right); in calc_content_width() 1033 child_res = LV_MAX(child_res, obj->coords.x2 - child->coords.x1 + 1); in calc_content_width() 1054 child_res = LV_MAX(child_res, child->coords.x2 - obj->coords.x1 + 1); in calc_content_width() 1060 … child_res = LV_MAX(child_res, lv_area_get_width(&child->coords) + pad_left); in calc_content_width() 1065 child_res = LV_MAX(child_res, child->coords.x2 - obj->coords.x1 + 1); in calc_content_width() 1075 else return LV_MAX(child_res, self_w); in calc_content_width() 1105 child_res = LV_MAX(child_res, child->coords.y2 - obj->coords.y1 + 1); in calc_content_height() 1111 child_res = LV_MAX(child_res, lv_area_get_height(&child->coords) + pad_top); in calc_content_height() 1117 child_res = LV_MAX(child_res, child->coords.y2 - obj->coords.y1 + 1); in calc_content_height() [all …]
|
D | lv_obj_draw.c | 333 sh_width += LV_MAX(LV_ABS(sh_ofs_x), LV_ABS(sh_ofs_y)); in lv_obj_calculate_ext_draw_size() 334 s = LV_MAX(s, sh_width); in lv_obj_calculate_ext_draw_size() 343 s = LV_MAX(s, outline_pad + outline_width); in lv_obj_calculate_ext_draw_size() 349 lv_coord_t wh = LV_MAX(w, h); in lv_obj_calculate_ext_draw_size()
|
D | lv_obj_scroll.c | 144 child_res = LV_MAX(child_res, child->coords.y2); in lv_obj_get_scroll_bottom() 158 return LV_MAX(child_res, self_h); in lv_obj_get_scroll_bottom() 201 return LV_MAX(child_res, self_w); in lv_obj_get_scroll_left() 222 child_res = LV_MAX(child_res, child->coords.x2); in lv_obj_get_scroll_right() 237 return LV_MAX(child_res, self_w); in lv_obj_get_scroll_right() 530 sb_h = LV_MAX(sb_h, SCROLLBAR_MIN_SIZE); in lv_obj_get_scrollbar_area() 568 sb_w = LV_MAX(sb_w, SCROLLBAR_MIN_SIZE); in lv_obj_get_scrollbar_area()
|
/lvgl-3.5.0/src/widgets/ |
D | lv_line.c | 154 w = LV_MAX(line->point_array[i].x, w); in lv_line_event() 155 h = LV_MAX(line->point_array[i].y, h); in lv_line_event()
|
D | lv_slider.c | 300 knob_size += LV_MAX(LV_MAX(knob_left, knob_right), LV_MAX(knob_bottom, knob_top)); in lv_slider_event() 306 *s = LV_MAX(*s, knob_size); in lv_slider_event()
|
D | lv_switch.c | 134 *s = LV_MAX(*s, knob_size); in lv_switch_event() 135 *s = LV_MAX(*s, lv_obj_calculate_ext_draw_size(obj, LV_PART_INDICATOR)); in lv_switch_event()
|
D | lv_checkbox.c | 181 p->y = LV_MAX(marker_size.y, txt_size.y); in lv_checkbox_event() 186 *s = LV_MAX(*s, m); in lv_checkbox_event()
|
D | lv_img.c | 473 *s = LV_MAX(*s, -a.x1); in lv_img_event() 474 *s = LV_MAX(*s, -a.y1); in lv_img_event() 475 *s = LV_MAX(*s, a.x2 - w); in lv_img_event() 476 *s = LV_MAX(*s, a.y2 - h); in lv_img_event()
|
/lvgl-3.5.0/src/draw/ |
D | lv_draw_arc.c | 123 area->x2 = x + ((LV_MAX(lv_trigo_sin(start_angle + 90), in lv_draw_arc_get_area() 131 area->y2 = y + (LV_MAX(lv_trigo_sin(end_angle) * rin, in lv_draw_arc_get_area()
|
/lvgl-3.5.0/examples/widgets/chart/ |
D | lv_example_chart_4.c | 15 *s = LV_MAX(*s, 20); in event_cb()
|
/lvgl-3.5.0/src/extra/widgets/spinbox/ |
D | lv_spinbox.c | 165 …step_limit = LV_MAX(spinbox->range_max, (spinbox->range_min < 0 ? (-spinbox->range_min) : sp… in lv_spinbox_set_cursor_pos() 246 …step_limit = LV_MAX(spinbox->range_max, (spinbox->range_min < 0 ? (-spinbox->range_min) : sp… in lv_spinbox_step_prev()
|
/lvgl-3.5.0/src/extra/widgets/meter/ |
D | lv_meter.c | 484 p_outer.x = p_center.x + r_out + LV_MAX(LV_DPI_DEF, r_out); in draw_ticks_and_labels() 645 …get_area(scale_center.x, scale_center.y, r_out, LV_MIN(start_angle, end_angle), LV_MAX(start_angle, in inv_arc() 673 a.x2 = LV_MAX(scale_center.x, p_end.x) + indic->type_data.needle_line.width + 2; in inv_line() 674 a.y2 = LV_MAX(scale_center.y, p_end.y) + indic->type_data.needle_line.width + 2; in inv_line()
|
/lvgl-3.5.0/src/draw/nxp/vglite/ |
D | lv_draw_vglite.c | 283 rel_clip_area.x2 = LV_MAX(point1->x, point2->x) + dsc->width / 2; in lv_draw_vglite_line() 285 rel_clip_area.y2 = LV_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_vglite_line()
|