Skip to main content

OH_Drawing_PathAddOval

Function OH_Drawing_PathAddOval 

Source
pub unsafe extern "C" fn OH_Drawing_PathAddOval(
    path: *mut OH_Drawing_Path,
    rect: *const OH_Drawing_Rect,
    pathDirection: OH_Drawing_PathDirection,
)
Expand description

@brief Adds an oval to a path in the specified direction. 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. 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 rect Pointer to the {@link OH_Drawing_Rect} object. @param pathDirection {@link OH_Drawing_PathDirection} object. @since 12 @version 1.0