pub unsafe extern "C" fn OH_ArkUI_NodeUtils_GetPositionWithTranslateInWindow(
node: ArkUI_NodeHandle,
translateOffset: *mut ArkUI_IntOffset,
) -> i32Available on crate feature
api-12 only.Expand description
Obtain the position of the component in the window, including the properties 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