Skip to main content

OH_Drawing_RoundRectOffset

Function OH_Drawing_RoundRectOffset 

Source
pub unsafe extern "C" fn OH_Drawing_RoundRectOffset(
    roundRect: *mut OH_Drawing_RoundRect,
    dx: f32,
    dy: f32,
) -> OH_Drawing_ErrorCode
Expand description

@brief Translates a rounded rectangle by an offset along the X axis and Y axis.

@param roundRect Pointer to an {@link OH_Drawing_Point2D} object. @param dx X offset. @param dy Y offset. @return Returns one of the following result codes: OH_DRAWING_SUCCESS if the operation is successful. OH_DRAWING_ERROR_INVALID_PARAMETER if roundRect is NULL. @since 12 @version 1.0