OH_ArkUI_NodeUtils_GetPositionWithTranslateInScreen

Function OH_ArkUI_NodeUtils_GetPositionWithTranslateInScreen 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeUtils_GetPositionWithTranslateInScreen(
    node: ArkUI_NodeHandle,
    translateOffset: *mut ArkUI_IntOffset,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtain the position of the component on the screen, including the attributes of graphic translation changes.

§Arguments

  • node - ArkUI_NodeHandle pointer.

  • translateOffset - The cumulative offset value of the component handle itself, parent components, and ancestor nodes, in px.

§Returns

  • Returns the error code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 12