pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_SetClipToFrame(
node: ArkUI_RenderNodeHandle,
clipToFrame: i32,
) -> i32Available on crate feature
api-20 only.Expand description
Set whether to clip content to the node’s frame.
§Arguments
-
node- Handle to the target render node. -
clipToFrame- Integer (1 = clip to frame, 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. [ARKUI_ERROR_CODE_PARAM_OUT_OF_RANGE] Parameter out of range.
Available since API-level: 20