OH_ArkUI_RenderNodeUtils_GetClipToBounds

Function OH_ArkUI_RenderNodeUtils_GetClipToBounds 

Source
pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_GetClipToBounds(
    node: ArkUI_RenderNodeHandle,
    clipToBounds: *mut i32,
) -> i32
Available on crate feature api-20 only.
Expand description

Get whether to clip content to the node’s Bounds.

§Arguments

  • node - Handle to the target render node.

  • clipToBounds - Integer pointer (1 = clip to bounds, 0 = do not clip).

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if CAPI init error.

Available since API-level: 20