Home
last modified time | relevance | path

Searched refs:end_angle (Results 1 – 18 of 18) sorted by relevance

/lvgl-3.5.0/src/draw/
Dlv_draw_arc.c45 uint16_t start_angle, uint16_t end_angle) in lv_draw_arc() argument
49 if(start_angle == end_angle) return; in lv_draw_arc()
51 draw_ctx->draw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_arc()
57 …rc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint16_t end_angle, in lv_draw_arc_get_area() argument
63 if(end_angle == start_angle + 360) { in lv_draw_arc_get_area()
72 if(end_angle > 360) end_angle -= 360; in lv_draw_arc_get_area()
77 uint8_t end_quarter = end_angle / 90; in lv_draw_arc_get_area()
83 if(start_quarter == end_quarter && start_angle <= end_angle) { in lv_draw_arc_get_area()
88 area->y2 = y + ((lv_trigo_sin(end_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area()
89 area->x1 = x + ((lv_trigo_sin(end_angle + 90) * rin) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area()
[all …]
Dlv_draw_arc.h32 uint16_t end_angle; member
59 uint16_t radius, uint16_t start_angle, uint16_t end_angle);
72 …rc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint16_t end_angle,
Dlv_draw_mask.c414 lv_coord_t start_angle, lv_coord_t end_angle) in lv_draw_mask_angle_init() argument
425 if(end_angle < 0) in lv_draw_mask_angle_init()
426 end_angle = 0; in lv_draw_mask_angle_init()
427 else if(end_angle > 359) in lv_draw_mask_angle_init()
428 end_angle = 359; in lv_draw_mask_angle_init()
430 if(end_angle < start_angle) { in lv_draw_mask_angle_init()
431 param->delta_deg = 360 - start_angle + end_angle; in lv_draw_mask_angle_init()
434 param->delta_deg = LV_ABS(end_angle - start_angle); in lv_draw_mask_angle_init()
438 param->cfg.end_angle = end_angle; in lv_draw_mask_angle_init()
452 LV_ASSERT_MSG(end_angle >= 0 && start_angle <= 360, "Unexpected end angle"); in lv_draw_mask_angle_init()
[all …]
Dlv_draw_mask.h148 lv_coord_t end_angle; member
350 lv_coord_t start_angle, lv_coord_t end_angle);
Dlv_draw.h80 uint16_t radius, uint16_t start_angle, uint16_t end_angle);
/lvgl-3.5.0/src/draw/sw/
Dlv_draw_sw_arc.c28 uint16_t end_angle; member
61 uint16_t start_angle, uint16_t end_angle) in lv_draw_sw_arc() argument
66 if(start_angle == end_angle) return; in lv_draw_sw_arc()
112 if(start_angle + 360 == end_angle || start_angle == end_angle + 360) { in lv_draw_sw_arc()
128 while(end_angle >= 360) end_angle -= 360; in lv_draw_sw_arc()
131 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sw_arc()
135 if(end_angle > start_angle) { in lv_draw_sw_arc()
136 angle_gap = 360 - (end_angle - start_angle); in lv_draw_sw_arc()
139 angle_gap = start_angle - end_angle; in lv_draw_sw_arc()
150 q_dsc.end_angle = end_angle; in lv_draw_sw_arc()
[all …]
Dlv_draw_sw.h56 uint16_t start_angle, uint16_t end_angle);
/lvgl-3.5.0/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c92 … int32_t start_angle, int32_t end_angle, const lv_point_t * center, bool cw);
106 …_vglite_draw_arc(const lv_point_t * center, int32_t radius, int32_t start_angle, int32_t end_angle, in lv_gpu_nxp_vglite_draw_arc() argument
113 bool donut = ((end_angle - start_angle) % 360 == 0) ? true : false; in lv_gpu_nxp_vglite_draw_arc()
137 add_arc_path(arc_path, &pidx, radius, start_angle, end_angle, center, true); in lv_gpu_nxp_vglite_draw_arc()
159 rotate_point(end_angle, &cp_x, &cp_y); in lv_gpu_nxp_vglite_draw_arc()
161 add_arc_path(arc_path, &pidx, width / 2, end_angle, (end_angle + 180), in lv_gpu_nxp_vglite_draw_arc()
168 rotate_point(end_angle, &cp_x, &cp_y); in lv_gpu_nxp_vglite_draw_arc()
175 add_arc_path(arc_path, &pidx, radius - width, start_angle, end_angle, center, false); in lv_gpu_nxp_vglite_draw_arc()
592 int32_t start_angle, int32_t end_angle, const lv_point_t * center, bool cw) in add_arc_path() argument
597 int32_t end_arc_angle = end_angle % 90; in add_arc_path()
[all …]
Dlv_draw_vglite_arc.h70 …_vglite_draw_arc(const lv_point_t * center, int32_t radius, int32_t start_angle, int32_t end_angle,
Dlv_draw_vglite.c88 uint16_t radius, uint16_t start_angle, uint16_t end_angle);
474 uint16_t radius, uint16_t start_angle, uint16_t end_angle) in lv_draw_vglite_arc() argument
483 if(start_angle == end_angle) in lv_draw_vglite_arc()
487 lv_draw_sw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_vglite_arc()
498 …(lv_gpu_nxp_vglite_draw_arc(&rel_center, (int32_t)radius, (int32_t)start_angle, (int32_t)end_angle, in lv_draw_vglite_arc()
505 lv_draw_sw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_vglite_arc()
/lvgl-3.5.0/src/draw/sdl/
Dlv_draw_sdl_arc.c48 uint16_t radius, uint16_t start_angle, uint16_t end_angle) in lv_draw_sdl_draw_arc() argument
72 while(end_angle >= 360) end_angle -= 360; in lv_draw_sdl_draw_arc()
89 if((start_angle - end_angle) % 360) { in lv_draw_sdl_draw_arc()
90 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sdl_draw_arc()
99 get_cap_area((int16_t) end_angle, dsc->width, radius, center, &end_area); in lv_draw_sdl_draw_arc()
Dlv_draw_sdl.c35 uint16_t radius, uint16_t start_angle, uint16_t end_angle);
/lvgl-3.5.0/docs/widgets/core/
Darc.md22 … use the `lv_arc_set_bg_angles(arc, start_angle, end_angle)` functions or `lv_arc_set_bg_start/end…
46 …directly with `lv_arc_set_angles(arc, start_angle, end_angle)` function or `lv_arc_set_start/end_a…
Dcanvas.md51 - `lv_canvas_draw_arc(canvas, x, y, radius, start_angle, end_angle, &draw_dsc)`
/lvgl-3.5.0/src/widgets/
Dlv_arc.c36 static void inv_arc_area(lv_obj_t * arc, uint16_t start_angle, uint16_t end_angle, lv_part_t part);
694 static void inv_arc_area(lv_obj_t * obj, uint16_t start_angle, uint16_t end_angle, lv_part_t part) in inv_arc_area() argument
703 if(start_angle == end_angle) return; in inv_arc_area()
706 if(end_angle > 360) end_angle -= 360; in inv_arc_area()
709 end_angle += arc->rotation; in inv_arc_area()
712 if(end_angle > 360) end_angle -= 360; in inv_arc_area()
722 lv_draw_arc_get_area(c.x, c.y, r, start_angle, end_angle, w, rounded, &inv_area); in inv_arc_area()
Dlv_canvas.h253 int32_t end_angle, const lv_draw_arc_dsc_t * draw_dsc);
Dlv_canvas.c720 int32_t end_angle, const lv_draw_arc_dsc_t * draw_dsc) in lv_canvas_draw_arc() argument
743 lv_draw_arc(driver.draw_ctx, draw_dsc, &p, r, start_angle, end_angle); in lv_canvas_draw_arc()
756 LV_UNUSED(end_angle); in lv_canvas_draw_arc()
/lvgl-3.5.0/src/extra/widgets/meter/
Dlv_meter.c360 int32_t end_angle = lv_map(indic->end_value, scale->min, scale->max, scale->rotation, in draw_arcs() local
368 … lv_draw_arc(draw_ctx, &arc_dsc, &scale_center, part_draw_dsc.radius, start_angle, end_angle); in draw_arcs()
642 …int32_t end_angle = lv_map(new_value, scale->min, scale->max, scale->rotation, scale->angle_range … in inv_arc() local
645 …lv_draw_arc_get_area(scale_center.x, scale_center.y, r_out, LV_MIN(start_angle, end_angle), LV_MAX… in inv_arc()
646end_angle), indic->type_data.arc.width, rounded, &a); in inv_arc()