pub unsafe extern "C" fn OH_Drawing_PathAddArc(
path: *mut OH_Drawing_Path,
rect: *const OH_Drawing_Rect,
startAngle: f32,
sweepAngle: f32,
)Expand description
@brief Adds an arc to a path as the start of a new contour. The arc added is part of the inscribed ellipse of the rectangle, from the start angle through the sweep angle. If the sweep angle is less than or equal to -360°, or if the sweep angle is greater than or equal to 360°, and start angle modulo 90 is nearly zero, an oval instead of an ellipse is added. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either path or rect is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@param path Pointer to the {@link OH_Drawing_Path} object. @param rect Pointer to the {@link OH_Drawing_Rect} object. @param startAngle Start angle of the arc, in degrees. @param sweepAngle Angle to sweep, in degrees. A positive number indicates a clockwise sweep, and a negative value indicates a counterclockwise swipe. The actual swipe degree is the modulo operation result of the input parameter by 360. @since 12 @version 1.0