OH_ArkUI_RenderNodeUtils_GetBounds

Function OH_ArkUI_RenderNodeUtils_GetBounds 

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

Get the bounds for a RenderNode.

§Arguments

  • node - Handle to the target render node.

  • x - Pointer to receive x-coordinate value of the bounds’s top-left corner (in pixels)

  • y - Pointer to receive y-coordinate value of the bounds’s top-left corner (in pixels)

  • width - Pointer to receive width value in pixels.

  • height - Pointer to receive height value in pixels.

§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