Skip to main content

OH_Drawing_RectCreate

Function OH_Drawing_RectCreate 

Source
pub unsafe extern "C" fn OH_Drawing_RectCreate(
    left: f32,
    top: f32,
    right: f32,
    bottom: f32,
) -> *mut OH_Drawing_Rect
Expand description

@brief Creates an OH_Drawing_Rect object, without sorting the coordinates passed in. This means that the coordinates of the upper left corner of the rectangle can be greater than those of the lower right corner.

@param left X coordinate of the upper left corner of the rectangle. @param top Y coordinate of the upper left corner of the rectangle. @param right X coordinate of the lower right corner of the rectangle. @param bottom Y coordinate of the lower right corner of the rectangle. @return Returns the pointer to the OH_Drawing_Rect object created. @since 11 @version 1.0