OH_NativeXComponent_GetXComponentSize

Function OH_NativeXComponent_GetXComponentSize 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetXComponentSize(
    component: *mut OH_NativeXComponent,
    window: *const c_void,
    width: *mut u64,
    height: *mut u64,
) -> i32
Expand description

Obtains the size of the surface held by the ArkUI XComponent.

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • window - Indicates the native window handler.

  • width - Indicates the pointer to the width of the current surface.

  • height - Indicates the pointer to the height of the current surface.

§Returns

  • Returns the status code of the execution.

Available since API-level: 8

Version: 1.0