Function input_sys::libinput_event_gesture_get_cancelled [] [src]

pub unsafe extern "C" fn libinput_event_gesture_get_cancelled(
    event: *mut libinput_event_gesture
) -> c_int

@ingroup event_gesture

Return if the gesture ended normally, or if it was cancelled. For gesture events that are not of type @ref LIBINPUT_EVENT_GESTURE_SWIPE_END or @ref LIBINPUT_EVENT_GESTURE_PINCH_END, this function returns 0.

@note It is an application bug to call this function for events other than @ref LIBINPUT_EVENT_GESTURE_SWIPE_END or @ref LIBINPUT_EVENT_GESTURE_PINCH_END.

@return 0 or 1, with 1 indicating that the gesture was cancelled.