OH_ArkUI_PointerEvent_GetGlobalDisplayY

Function OH_ArkUI_PointerEvent_GetGlobalDisplayY 

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

Obtains the Y coordinate relative to global display from a pointer event (such as a touch, mouse, or axis event). Position information can only be obtained from pointer-like events.

§Arguments

  • event - Pointer to the current UI input event.

§Returns

  • float Y coordinate relative to the global display; 0 if any parameter error occurs (for example, if the event does not contain position information).

Available since API-level: 20