Skip to main content

OH_Drawing_RectSetRight

Function OH_Drawing_RectSetRight 

Source
pub unsafe extern "C" fn OH_Drawing_RectSetRight(
    rect: *mut OH_Drawing_Rect,
    right: f32,
)
Expand description

@brief Sets the horizontal coordinate of the lower right corner of a rectangle. 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 right X coordinate of the lower right corner of the rectangle. @since 12 @version 1.0