OH_ArkUI_NodeUtils_GetLayoutSize

Function OH_ArkUI_NodeUtils_GetLayoutSize 

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

Get the size of the component layout area. The layout area size does not include graphic variation attributes such as scaling.

§Arguments

  • node - ArkUI_NodeHandle pointer.

  • size - The drawing area size of the component handle, 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