OH_ArkUI_PointerEvent_GetX

Function OH_ArkUI_PointerEvent_GetX 

Source
pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetX(
    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 component from a directional input event (such as a touch event, mouse event, or axis event).

§Arguments

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

§Returns

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

Available since API-level: 12