Skip to main content

OH_Drawing_RectSetLeft

Function OH_Drawing_RectSetLeft 

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

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