pub unsafe extern "C" fn OH_ArkUI_NodeUtils_GetLayoutPositionInScreen(
node: ArkUI_NodeHandle,
screenOffset: *mut ArkUI_IntOffset,
) -> i32Available on crate feature
api-12 only.Expand description
Obtain the position of the component layout area relative to the screen. The relative position of the layout area does not include graphic variation attributes, such as translation.
§Arguments
-
node- ArkUI_NodeHandle pointer. -
screenOffset- The offset value of the component handle relative to the screen, 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