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 round rect by (dx, dy).

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param roundRect Indicates the pointer to an OH_Drawing_RoundRect object. @param dx Indicates the offsets added to rect left and rect right. @param dy Indicates the offsets added to rect top and rect bottom. @return Returns the error code. Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if roundRect is nullptr. @since 12 @version 1.0