OH_ArkUI_PointerEvent_GetHistoryX

Function OH_ArkUI_PointerEvent_GetHistoryX 

Source
pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetHistoryX(
    event: *const ArkUI_UIInputEvent,
    pointerIndex: u32,
    historyIndex: u32,
) -> f32
Available on crate feature api-12 only.
Expand description

Obtains the X coordinate of a specific touch point in a historical event relative to the upper left corner of the current component from a directional input event (such as a touch event, mouse event, or axis event).

§Arguments

  • event - Indicates the pointer to the current UI input event.

  • pointerIndex - Indicates the index of the target touch point in the multi-touch data list.

  • historyIndex - Indicates the index of the target historical event.

§Returns

  • Returns the X coordinate relative to the upper left corner of the current component; returns 0.0f if any parameter error occurs.

Available since API-level: 12