pub unsafe extern "C" fn OH_Drawing_PathAddRoundRect(
path: *mut OH_Drawing_Path,
roundRect: *const OH_Drawing_RoundRect,
pathDirection: OH_Drawing_PathDirection,
)Expand description
@brief Adds a rounded rectangle to a path in the specified direction. When the path direction is clockwise, the start point is at the intersection of the rounded rectangle’s left boundary and its lower left corner. When the path direction is counterclockwise, the start point is at the intersection point between the left boundary and the upper left corner. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either path or roundRect 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 roundRect Pointer to the {@link OH_Drawing_RoundRect} object. @param pathDirection {@link OH_Drawing_PathDirection} object. @since 12 @version 1.0