pub unsafe extern "C" fn OH_ArkUI_NodeUtils_GetPositionToParent(
node: ArkUI_NodeHandle,
globalOffset: *mut ArkUI_IntOffset,
) -> i32Available on crate features
api-12 and api-15 only.Expand description
Obtains the offset of a specific node relative to its parent node.
§Arguments
-
node- Target node. -
globalOffset- Offset of the target node relative to its parent node, in px.
§Returns
- Returns the result 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: 15