aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 00:04:13 +0200
committerDavid Robillard <d@drobilla.net>2019-07-24 01:02:52 +0200
commitfd7d496d4c5dcd9377ce945989ce05f464dc3afc (patch)
treeb3461c1308ceaad427c036b1867bda98a36eba73 /pugl/pugl.h
parent9d127e389aa182f5d75395a59b3ba7241575f525 (diff)
downloadpugl-fd7d496d4c5dcd9377ce945989ce05f464dc3afc.tar.gz
pugl-fd7d496d4c5dcd9377ce945989ce05f464dc3afc.tar.bz2
pugl-fd7d496d4c5dcd9377ce945989ce05f464dc3afc.zip
Remove view pointer from events
This makes events POD, which is generally nice. The view was originally added to reflect the display and window references in XEvent, but doesn't seem very useful in Pugl applications.
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 0953238..84887e7 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -205,7 +205,6 @@ typedef enum {
*/
typedef struct {
PuglEventType type; /**< Event type. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
} PuglEventAny;
@@ -216,7 +215,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_BUTTON_PRESS or PUGL_BUTTON_RELEASE. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
double time; /**< Time in seconds. */
double x; /**< View-relative X coordinate. */
@@ -232,7 +230,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_CONFIGURE. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
double x; /**< New parent-relative X coordinate. */
double y; /**< New parent-relative Y coordinate. */
@@ -245,7 +242,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_EXPOSE. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
double x; /**< View-relative X coordinate. */
double y; /**< View-relative Y coordinate. */
@@ -259,7 +255,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_CLOSE. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
} PuglEventClose;
@@ -286,7 +281,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_KEY_PRESS or PUGL_KEY_RELEASE. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
double time; /**< Time in seconds. */
double x; /**< View-relative X coordinate. */
@@ -306,7 +300,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_ENTER_NOTIFY or PUGL_LEAVE_NOTIFY. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
double time; /**< Time in seconds. */
double x; /**< View-relative X coordinate. */
@@ -322,7 +315,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_MOTION_NOTIFY. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
double time; /**< Time in seconds. */
double x; /**< View-relative X coordinate. */
@@ -345,7 +337,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_SCROLL. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
double time; /**< Time in seconds. */
double x; /**< View-relative X coordinate. */
@@ -362,7 +353,6 @@ typedef struct {
*/
typedef struct {
PuglEventType type; /**< PUGL_FOCUS_IN or PUGL_FOCUS_OUT. */
- PuglView* view; /**< View that received this event. */
uint32_t flags; /**< Bitwise OR of PuglEventFlag values. */
bool grab; /**< True iff this is a grab/ungrab event. */
} PuglEventFocus;