Skip to main content

OH_Drawing_RoundRectSetCorner

Function OH_Drawing_RoundRectSetCorner 

Source
pub unsafe extern "C" fn OH_Drawing_RoundRectSetCorner(
    roundRect: *mut OH_Drawing_RoundRect,
    pos: OH_Drawing_CornerPos,
    radii: OH_Drawing_Corner_Radii,
)
Expand description

@brief Sets the radii of the specified rounded corner in this rounded rectangle. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If roundRect is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param roundRect Pointer to an OH_Drawing_RoundRect object. @param pos Position of the rounded corner. For details about the available options, see {@link OH_Drawing_CornerPos}. @param radii OH_Drawing_Corner_Radii struct, including the radii on the X axis and Y axis. A radius less than or equal to 0 is invalid. @since 12 @version 1.0