[][src]Function input_sys::libinput_event_get_gesture_event

pub unsafe extern "C" fn libinput_event_get_gesture_event(
    event: *mut libinput_event
) -> *mut libinput_event_gesture

@ingroup event

Return the gesture event that is this input event. If the event type does not match the gesture event types, this function returns NULL.

A gesture's lifetime has three distinct stages: begin, update and end, each with their own event types. Begin is sent when the fingers are first set down or libinput decides that the gesture begins. For @ref LIBINPUT_EVENT_GESTURE_PINCH_BEGIN this sets the initial scale. Any events changing properties of the gesture are sent as update events. On termination of the gesture, an end event is sent.

The inverse of this function is libinput_event_gesture_get_base_event().

@return A gesture event, or NULL for other events