pub unsafe extern "C" fn OH_Drawing_PathAddCircle(
path: *mut OH_Drawing_Path,
x: f32,
y: f32,
radius: f32,
pathDirection: OH_Drawing_PathDirection,
)Expand description
@brief Adds a circle to a path in the specified direction. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If path is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned. If radius is less than or equal to 0, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned. If pathDirection is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
@param path Pointer to the {@link OH_Drawing_Path} object. @param x X coordinate of the circle center. @param y Y coordinate of the circle center. @param radius Radius of the circle. @param pathDirection {@link OH_Drawing_PathDirection} object. @since 12 @version 1.0