arkui_sys::ui_input_event

Function OH_ArkUI_PointerEvent_GetWindowYByIndex

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

@brief Obtains the Y coordinate of a specific touch point relative to the upper left corner of the current application window from a directional input event (such as a touch event, mouse event, or axis event).

@param event Indicates the pointer to the current UI input event. @param pointerIndex Indicates the index of the target touch point in the multi-touch data list. @return Returns the Y coordinate relative to the upper left corner of the current application window; returns 0.0f if any parameter error occurs. @since 12