OH_NativeXComponent_GetXComponentOffset

Function OH_NativeXComponent_GetXComponentOffset 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetXComponentOffset(
    component: *mut OH_NativeXComponent,
    window: *const c_void,
    x: *mut f64,
    y: *mut f64,
) -> i32
Expand description

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

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • window - Indicates the native window handler.

  • x - Indicates the pointer to the x coordinate of the current surface.

  • y - Indicates the pointer to the y coordinate of the current surface.

§Returns

  • Returns the status code of the execution.

Available since API-level: 8

Version: 1.0