Skip to main content

OH_Drawing_PathAddRectWithInitialCorner

Function OH_Drawing_PathAddRectWithInitialCorner 

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

@brief Adds a rectangle contour 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 Indicates the path direction. @param start Start point, indicating the corner of the rectangle from which the path is drawn. The value 0 means the upper left corner, 1 means the upper right corner, 2 means the lower right corner, and 3 means the lower left corner. @since 12 @version 1.0