OH_NativeXComponent_GetTouchPointDisplayX

Function OH_NativeXComponent_GetTouchPointDisplayX 

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

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

the current screen from the ArkUI XComponent.

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • pointIndex - Indicates the pointer index in the touchPoints.

  • displayX - Indicates the x coordinate relative to the upper left corner of the current

screen.

§Returns

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

or native XComponent is NULL.

Available since API-level: 12

Version: 1.0