From a4ea1e2d979631f5da00484729c2c306fa40e858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Fri, 3 Oct 2025 12:53:51 +0200 Subject: [PATCH] libinput: Add libinput_event_gesture forward declaration Closes: https://gitlab.freedesktop.org/libinput/libinput/-/issues/1189 Part-of: --- src/libinput.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/libinput.h b/src/libinput.h index cfc0af3a..37283eef 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -144,6 +144,20 @@ struct libinput_event_pointer; */ struct libinput_event_touch; +/** + * @ingroup event_gesture + * @struct libinput_event_gesture + * + * A gesture event representing a swipe, pinch or hold gesture. Valid event + * types for this event are @ref LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN, @ref + * LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE, @ref LIBINPUT_EVENT_GESTURE_SWIPE_END, + * @ref LIBINPUT_EVENT_GESTURE_PINCH_BEGIN, @ref + * LIBINPUT_EVENT_GESTURE_PINCH_UPDATE, @ref LIBINPUT_EVENT_GESTURE_PINCH_END, + * @ref LIBINPUT_EVENT_GESTURE_HOLD_BEGIN and @ref + * LIBINPUT_EVENT_GESTURE_HOLD_END. + */ +struct libinput_event_gesture; + /** * @ingroup event_tablet * @struct libinput_event_tablet_tool