Skip to main content

OH_Drawing_RegionSetPath

Function OH_Drawing_RegionSetPath 

Source
pub unsafe extern "C" fn OH_Drawing_RegionSetPath(
    region: *mut OH_Drawing_Region,
    path: *const OH_Drawing_Path,
    clip: *const OH_Drawing_Region,
) -> bool
Expand description

@brief Sets a region to the area described by the path. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If region, path, or clip is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param region Pointer to the {@link OH_Drawing_Region} object. @param path Pointer to the {@link OH_Drawing_Path} object. @param clip Pointer to the {@link OH_Drawing_Region} object. @return Returns true if the resulting region is not empty; returns false otherwise. @since 12 @version 1.0