OH_NativeXComponent_GetTouchPointWindowY

Function OH_NativeXComponent_GetTouchPointWindowY 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetTouchPointWindowY(
    component: *mut OH_NativeXComponent,
    pointIndex: u32,
    windowY: *mut f32,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains the y coordinate of a specific touch point relative to the upper left corner of

the current application window from the ArkUI XComponent.

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • pointIndex - Indicates the pointer index in the touchPoints.

  • windowY - Indicates the y coordinate relative to the upper left corner of the current

application window.

§Returns

  • Returns the status code of the execution. [OH_NATIVEXCOMPONENT_RESULT_SUCCESS] get windowY success. [OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER] component is NULL, windowY is NULL

or native XComponent is NULL.

Available since API-level: 12

Version: 1.0