Skip to main content

OH_Drawing_PathContains

Function OH_Drawing_PathContains 

Source
pub unsafe extern "C" fn OH_Drawing_PathContains(
    path: *mut OH_Drawing_Path,
    x: f32,
    y: f32,
) -> bool
Expand description

@brief Return the status that point (x, y) is contained by path.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param path Indicates the pointer to an OH_Drawing_Path object. @param x Indicates the x-axis value of containment test. @param y Indicates the y-axis value of containment test. @return Returns true if the point (x, y) is contained by path. @since 12 @version 1.0