/lvgl-latest/src/draw/ |
D | lv_draw_arc.c | 45 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 void lv_draw_arc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint1… in lv_draw_arc_get_area() argument 63 if(end_angle == start_angle + 360) { in lv_draw_arc_get_area() 71 if(start_angle > 360) start_angle -= 360; in lv_draw_arc_get_area() 76 uint8_t start_quarter = start_angle / 90; in lv_draw_arc_get_area() 83 if(start_quarter == end_quarter && start_angle <= end_angle) { in lv_draw_arc_get_area() 85 area->y1 = y + ((lv_trigo_sin(start_angle) * rin) >> LV_TRIGO_SHIFT) - extra_area; in lv_draw_arc_get_area() 86 area->x2 = x + ((lv_trigo_sin(start_angle + 90) * rout) >> LV_TRIGO_SHIFT) + extra_area; in lv_draw_arc_get_area() [all …]
|
D | lv_draw_arc.h | 31 uint16_t start_angle; member 59 uint16_t radius, uint16_t start_angle, uint16_t end_angle); 72 void lv_draw_arc_get_area(lv_coord_t x, lv_coord_t y, uint16_t radius, uint16_t start_angle, uint1…
|
D | lv_draw_mask.c | 415 lv_coord_t start_angle, lv_coord_t end_angle) in lv_draw_mask_angle_init() argument 421 if(start_angle < 0) in lv_draw_mask_angle_init() 422 start_angle = 0; in lv_draw_mask_angle_init() 423 else if(start_angle > 359) in lv_draw_mask_angle_init() 424 start_angle = 359; in lv_draw_mask_angle_init() 431 if(end_angle < start_angle) { in lv_draw_mask_angle_init() 432 param->delta_deg = 360 - start_angle + end_angle; in lv_draw_mask_angle_init() 435 param->delta_deg = LV_ABS(end_angle - start_angle); in lv_draw_mask_angle_init() 438 param->cfg.start_angle = start_angle; in lv_draw_mask_angle_init() 445 LV_ASSERT_MSG(start_angle >= 0 && start_angle <= 360, "Unexpected start angle"); in lv_draw_mask_angle_init() [all …]
|
D | lv_draw_mask.h | 144 lv_coord_t start_angle; member 344 lv_coord_t start_angle, lv_coord_t end_angle);
|
D | lv_draw.h | 80 uint16_t radius, uint16_t start_angle, uint16_t end_angle);
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_arc.c | 27 uint16_t start_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() 127 while(start_angle >= 360) start_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() 149 q_dsc.start_angle = start_angle; in lv_draw_sw_arc() [all …]
|
D | lv_draw_sw.h | 56 uint16_t start_angle, uint16_t end_angle);
|
/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_draw_vglite_arc.c | 92 … int32_t start_angle, int32_t end_angle, const lv_point_t * center, bool cw); 106 lv_res_t lv_gpu_nxp_vglite_draw_arc(const lv_point_t * center, int32_t radius, int32_t start_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() 131 rotate_point(start_angle, &cp_x, &cp_y); 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() 143 rotate_point(start_angle, &cp_x, &cp_y); in lv_gpu_nxp_vglite_draw_arc() 150 rotate_point(start_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() 181 rotate_point(start_angle, &cp_x, &cp_y); in lv_gpu_nxp_vglite_draw_arc() 190 rotate_point(start_angle, &cp_x, &cp_y); in lv_gpu_nxp_vglite_draw_arc() [all …]
|
D | lv_draw_vglite_arc.h | 70 lv_res_t lv_gpu_nxp_vglite_draw_arc(const lv_point_t * center, int32_t radius, int32_t start_angle,…
|
D | lv_draw_vglite.c | 92 uint16_t radius, uint16_t start_angle, uint16_t end_angle); 519 uint16_t radius, uint16_t start_angle, uint16_t end_angle) in lv_draw_vglite_arc() argument 528 if(start_angle == end_angle) in lv_draw_vglite_arc() 532 lv_draw_sw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_vglite_arc() 545 …done = (lv_gpu_nxp_vglite_draw_arc(&rel_center, (int32_t)radius, (int32_t)start_angle, (int32_t)en… in lv_draw_vglite_arc() 554 lv_draw_sw_arc(draw_ctx, dsc, center, radius, start_angle, end_angle); in lv_draw_vglite_arc()
|
/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl_arc.c | 48 uint16_t radius, uint16_t start_angle, uint16_t end_angle) in lv_draw_sdl_draw_arc() argument 70 while(start_angle >= 360) start_angle -= 360; in lv_draw_sdl_draw_arc() 88 if((start_angle - end_angle) % 360) { in lv_draw_sdl_draw_arc() 89 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sdl_draw_arc() 97 get_cap_area((int16_t) start_angle, dsc->width, radius, center, &start_area); in lv_draw_sdl_draw_arc()
|
D | lv_draw_sdl.c | 34 uint16_t radius, uint16_t start_angle, uint16_t end_angle);
|
/lvgl-latest/src/widgets/ |
D | lv_arc.c | 40 static void inv_arc_area(lv_obj_t * arc, uint16_t start_angle, uint16_t end_angle, lv_part_t part); 723 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 732 if(start_angle == end_angle) return; in inv_arc_area() 734 if(start_angle > 360) start_angle -= 360; in inv_arc_area() 737 start_angle += arc->rotation; in inv_arc_area() 740 if(start_angle > 360) start_angle -= 360; in inv_arc_area() 751 lv_draw_arc_get_area(c.x, c.y, r, start_angle, end_angle, w, rounded, &inv_area); in inv_arc_area()
|
D | lv_canvas.h | 251 …v_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_angle,
|
D | lv_canvas.c | 716 …v_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_angle, in lv_canvas_draw_arc() argument 740 lv_draw_arc(driver.draw_ctx, draw_dsc, &p, r, start_angle, end_angle); in lv_canvas_draw_arc() 752 LV_UNUSED(start_angle); in lv_canvas_draw_arc()
|
/lvgl-latest/docs/widgets/core/ |
D | arc.md | 22 To set the start and end angle of the background arc use the `lv_arc_set_bg_angles(arc, start_angle… 46 …rectly with `lv_arc_set_angles(arc, start_angle, end_angle)` function or `lv_arc_set_start/end_ang…
|
D | canvas.md | 51 - `lv_canvas_draw_arc(canvas, x, y, radius, start_angle, end_angle, &draw_dsc)`
|
/lvgl-latest/src/extra/widgets/meter/ |
D | lv_meter.c | 358 int32_t start_angle = lv_map(indic->start_value, scale->min, scale->max, scale->rotation, in draw_arcs() local 363 arc_dsc.start_angle = start_angle; in draw_arcs() 370 … lv_draw_arc(draw_ctx, &arc_dsc, &scale_center, part_draw_dsc.radius, start_angle, end_angle); in draw_arcs() 644 …int32_t start_angle = lv_map(old_value, scale->min, scale->max, scale->rotation, scale->angle_rang… in inv_arc() local 648 …get_area(scale_center.x, scale_center.y, r_out, LV_MIN(start_angle, end_angle), LV_MAX(start_angle, in inv_arc()
|
/lvgl-latest/docs/ |
D | CHANGELOG.md | 63 - fix(vglite): be sure end_angle > start_angle in arc drawing [`01cd1fe`](https://github.com/lvgl/l…
|