aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-08 12:32:21 +0100
committerDavid Robillard <d@drobilla.net>2020-03-08 14:40:51 +0100
commit8811c3f6dbf61def97fa7d0365351632da378d15 (patch)
treef4e7d978f1c34d648485a1650798cd76d1f54875
parent7ea92df546c8595ff571787b17d57c08fb06e916 (diff)
Link event types to the corresponding struct
-rw-r--r--pugl/pugl.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 64d25cb..7b45f2d 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -166,20 +166,20 @@ typedef enum {
*/
typedef enum {
PUGL_NOTHING, ///< No event
- PUGL_BUTTON_PRESS, ///< Mouse button pressed
- PUGL_BUTTON_RELEASE, ///< Mouse button released
- PUGL_CONFIGURE, ///< View moved and/or resized
- PUGL_EXPOSE, ///< View exposed and must be redrawn
- PUGL_CLOSE, ///< View will be closed
- PUGL_KEY_PRESS, ///< Key pressed
- PUGL_KEY_RELEASE, ///< Key released
- PUGL_TEXT, ///< Character entered
- PUGL_ENTER_NOTIFY, ///< Pointer entered view
- PUGL_LEAVE_NOTIFY, ///< Pointer left view
- PUGL_MOTION_NOTIFY, ///< Pointer moved
- PUGL_SCROLL, ///< Scrolled
- PUGL_FOCUS_IN, ///< Keyboard focus entered view
- PUGL_FOCUS_OUT ///< Keyboard focus left view
+ PUGL_BUTTON_PRESS, ///< Mouse button pressed, a #PuglEventButton
+ PUGL_BUTTON_RELEASE, ///< Mouse button released, a #PuglEventButton
+ PUGL_CONFIGURE, ///< View moved and/or resized, a #PuglEventConfigure
+ PUGL_EXPOSE, ///< View must be drawn, a #PuglEventExpose
+ PUGL_CLOSE, ///< View will be closed, a #PuglEventAny
+ PUGL_KEY_PRESS, ///< Key pressed, a #PuglEventKey
+ PUGL_KEY_RELEASE, ///< Key released, a #PuglEventKey
+ PUGL_TEXT, ///< Character entered, a #PuglEventText
+ PUGL_ENTER_NOTIFY, ///< Pointer entered view, a #PuglEventCrossing
+ PUGL_LEAVE_NOTIFY, ///< Pointer left view, a #PuglEventCrossing
+ PUGL_MOTION_NOTIFY, ///< Pointer moved, a #PuglEventMotion
+ PUGL_SCROLL, ///< Scrolled, a #PuglEventScroll
+ PUGL_FOCUS_IN, ///< Keyboard focus entered view, a #PuglEventFocus
+ PUGL_FOCUS_OUT ///< Keyboard focus left view, a #PuglEventFocus
} PuglEventType;
/**