Skip to main content

OH_Drawing_RoundRectCreate

Function OH_Drawing_RoundRectCreate 

Source
pub unsafe extern "C" fn OH_Drawing_RoundRectCreate(
    rect: *const OH_Drawing_Rect,
    xRad: f32,
    yRad: f32,
) -> *mut OH_Drawing_RoundRect
Expand description

@brief Creates an OH_Drawing_RoundRect object. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet} . If rect is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param rect Pointer to an OH_Drawing_Rect object. @param xRad Radius of the rounded corner on the X axis. A negative number is invalid. @param yRad Radius of the rounded corner on the Y axis. A negative number is invalid. @return Returns the pointer to the OH_Drawing_RoundRect object created. @since 11 @version 1.0