OH_ArkUI_PointerEvent_GetDisplayX

Function OH_ArkUI_PointerEvent_GetDisplayX 

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

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

§Arguments

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

§Returns

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

Available since API-level: 12