Lines Matching refs:radius
26 lv_coord_t radius; member
45 …static void get_rounded_area(int16_t angle, lv_coord_t radius, uint8_t thickness, lv_area_t * res_…
60 …v_draw_ctx_t * draw_ctx, const lv_draw_arc_dsc_t * dsc, const lv_point_t * center, uint16_t radius, in lv_draw_sw_arc() argument
69 if(width > radius) width = radius; in lv_draw_sw_arc()
85 area_out.x1 = center->x - radius; in lv_draw_sw_arc()
86 area_out.y1 = center->y - radius; in lv_draw_sw_arc()
87 …area_out.x2 = center->x + radius - 1; /*-1 because the center already belongs to the left/bottom … in lv_draw_sw_arc()
88 area_out.y2 = center->y + radius - 1; in lv_draw_sw_arc()
113 cir_dsc.radius = LV_RADIUS_CIRCLE; in lv_draw_sw_arc()
144 if(angle_gap > SPLIT_ANGLE_GAP_LIMIT && radius > SPLIT_RADIUS_LIMIT) { in lv_draw_sw_arc()
148 q_dsc.radius = radius; in lv_draw_sw_arc()
182 get_rounded_area(start_angle, radius, width, &round_area); in lv_draw_sw_arc()
198 get_rounded_area(end_angle, radius, width, &round_area); in lv_draw_sw_arc()
217 LV_UNUSED(radius); in lv_draw_sw_arc()
237 …quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius - q->width)) >> LV_TR… in draw_quarter_0()
238 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_0()
240 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->end_angle) * q->radius) >> LV_TRIGO_SHIFT); in draw_quarter_0()
241 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius - q->width)) >> LV… in draw_quarter_0()
253 quarter_area.y2 = q->center->y + q->radius; in draw_quarter_0()
255 …quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius - q->width)) >> LV_TR… in draw_quarter_0()
256 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_0()
265 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_0()
268 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->end_angle) * q->radius) >> LV_TRIGO_SHIFT); in draw_quarter_0()
269 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius - q->width)) >> LV… in draw_quarter_0()
285 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_0()
286 quarter_area.y2 = q->center->y + q->radius; in draw_quarter_0()
304 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius)) >> LV_TRIGO_SHIFT); in draw_quarter_1()
305 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius - q->width)) >> … in draw_quarter_1()
307 …quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->end_angle) * (q->radius - q->width)) >> LV_TRIG… in draw_quarter_1()
308 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius)) >> LV_TRIGO_SHIF… in draw_quarter_1()
319 quarter_area.x1 = q->center->x - q->radius; in draw_quarter_1()
322 … quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius)) >> LV_TRIGO_SHIFT); in draw_quarter_1()
323 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius - q->width)) >> … in draw_quarter_1()
333 quarter_area.y2 = q->center->y + q->radius; in draw_quarter_1()
335 …quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->end_angle) * (q->radius - q->width)) >> LV_TRIG… in draw_quarter_1()
336 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius)) >> LV_TRIGO_SHIF… in draw_quarter_1()
350 quarter_area.x1 = q->center->x - q->radius; in draw_quarter_1()
353 quarter_area.y2 = q->center->y + q->radius; in draw_quarter_1()
371 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_2()
372 …quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius - q->width)) >> LV_TR… in draw_quarter_2()
374 … quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->end_angle) * q->radius) >> LV_TRIGO_SHIFT); in draw_quarter_2()
375 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius - q->width)) >> LV… in draw_quarter_2()
387 quarter_area.y1 = q->center->y - q->radius; in draw_quarter_2()
389 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius)) >> LV_TRIGO_SH… in draw_quarter_2()
390 …quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius - q->width)) >> LV_TR… in draw_quarter_2()
399 quarter_area.x1 = q->center->x - q->radius; in draw_quarter_2()
402 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius - q->width)) >> LV… in draw_quarter_2()
403 … quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->end_angle) * (q->radius)) >> LV_TRIGO_SHIFT); in draw_quarter_2()
417 quarter_area.x1 = q->center->x - q->radius; in draw_quarter_2()
418 quarter_area.y1 = q->center->y - q->radius; in draw_quarter_2()
438 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius - q->width)) >> … in draw_quarter_3()
439 … quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius)) >> LV_TRIGO_SHIFT); in draw_quarter_3()
441 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius)) >> LV_TRIGO_SHIF… in draw_quarter_3()
442 …quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->end_angle) * (q->radius - q->width)) >> LV_TRIG… in draw_quarter_3()
453 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_3()
456 …quarter_area.x1 = q->center->x + ((lv_trigo_sin(q->start_angle + 90) * (q->radius - q->width)) >> … in draw_quarter_3()
457 … quarter_area.y1 = q->center->y + ((lv_trigo_sin(q->start_angle) * (q->radius)) >> LV_TRIGO_SHIFT); in draw_quarter_3()
467 quarter_area.y1 = q->center->y - q->radius; in draw_quarter_3()
469 …quarter_area.x2 = q->center->x + ((lv_trigo_sin(q->end_angle + 90) * (q->radius)) >> LV_TRIGO_SHIF… in draw_quarter_3()
470 …quarter_area.y2 = q->center->y + ((lv_trigo_sin(q->end_angle) * (q->radius - q->width)) >> LV_TRIG… in draw_quarter_3()
485 quarter_area.y1 = q->center->y - q->radius; in draw_quarter_3()
486 quarter_area.x2 = q->center->x + q->radius; in draw_quarter_3()
499 static void get_rounded_area(int16_t angle, lv_coord_t radius, uint8_t thickness, lv_area_t * res_a… in get_rounded_area() argument
510 cir_x = ((radius - thick_half) * lv_trigo_sin(90 - angle)) >> (LV_TRIGO_SHIFT - ps); in get_rounded_area()
511 cir_y = ((radius - thick_half) * lv_trigo_sin(angle)) >> (LV_TRIGO_SHIFT - ps); in get_rounded_area()