aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-05 15:01:13 +0200
committerDavid Robillard <d@drobilla.net>2020-07-05 18:47:39 +0200
commit90abfef17294c1b382f43007d984b93c200efa9d (patch)
treed8290397997ac31d7f9b9b565cd16ee88c11f937 /pugl/pugl.h
parent6c2460414082b989487abcad2ca2018a16ecdbd7 (diff)
downloadpugl-90abfef17294c1b382f43007d984b93c200efa9d.tar.gz
pugl-90abfef17294c1b382f43007d984b93c200efa9d.tar.bz2
pugl-90abfef17294c1b382f43007d984b93c200efa9d.zip
Replace isHint bool with a flag
I don't have any particular future use case in mind, but I think the concept makes sense for general events and it seems it could be useful for things like gestures as well. Also fixes another padding warning in the API.
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 8c0bd6d..c32a17d 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -221,7 +221,8 @@ typedef enum {
Common flags for all event types.
*/
typedef enum {
- PUGL_IS_SEND_EVENT = 1 ///< Event is synthetic
+ PUGL_IS_SEND_EVENT = 1, ///< Event is synthetic
+ PUGL_IS_HINT = 2 ///< Event is a hint (not direct user input)
} PuglEventFlag;
/**
@@ -474,7 +475,6 @@ typedef struct {
double xRoot; ///< Root-relative X coordinate
double yRoot; ///< Root-relative Y coordinate
PuglMods state; ///< Bitwise OR of #PuglMod flags
- bool isHint; ///< True iff this event is a motion hint
} PuglEventMotion;
/**