OH_ArkUI_RenderNodeUtils_GetPivot

Function OH_ArkUI_RenderNodeUtils_GetPivot 

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

Get the pivot point coordinates of a RenderNode.

§Arguments

  • node - Handle to the target render node.

  • x - Pointer to receive the X-coordinate of pivot.

  • y - Pointer to receive the Y-coordinate of pivot.

§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