OH_ArkUI_NodeUtils_GetLayoutPosition

Function OH_ArkUI_NodeUtils_GetLayoutPosition 

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

Obtain the position of the component layout area relative to the parent component. The relative position of the layout area does not include graphic variation attributes, such as translation.

§Arguments

  • node - ArkUI_NodeHandle pointer.

  • localOffset - The offset value of the component handle relative to the parent component, 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