pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetYByIndex(
event: *const ArkUI_UIInputEvent,
pointerIndex: u32,
) -> f32Available on crate feature
api-12 only.Expand description
Obtains the Y coordinate of a specific contact point relative to the upper left corner of the current component from a pointer event (such as a touch, mouse, or axis event). For mouse and axis events, this API returns the default value of 0.0f if the given index is greater than 0.
§Arguments
-
event- Pointer to the current UI input event. -
pointerIndex- Index of the target contact point in the contact point list.
§Returns
- Y coordinate relative to the upper left corner of the current component; 0.0f if any parameter error occurs.
Available since API-level: 12