summaryrefslogtreecommitdiff
path: root/pugl/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/event.h')
-rw-r--r--pugl/event.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pugl/event.h b/pugl/event.h
index 2c48369..8ed1b2e 100644
--- a/pugl/event.h
+++ b/pugl/event.h
@@ -38,6 +38,7 @@ typedef enum {
PUGL_BUTTON_RELEASE,
PUGL_CONFIGURE,
PUGL_EXPOSE,
+ PUGL_CLOSE,
PUGL_KEY_PRESS,
PUGL_KEY_RELEASE,
PUGL_ENTER_NOTIFY,
@@ -117,6 +118,15 @@ typedef struct {
} PuglEventExpose;
/**
+ Window close event.
+*/
+typedef struct {
+ PuglEventType type; /**< PUGL_CLOSE. */
+ PuglView* view; /**< View that received this event. */
+ uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
+} PuglEventClose;
+
+/**
Key press/release event.
Keys that correspond to a Unicode character have `character` and `utf8` set.