aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-28 12:08:40 +0100
committerDavid Robillard <d@drobilla.net>2019-06-27 19:30:58 +0200
commitbca65c93cd0228d408e0b6029b33da6449a5b567 (patch)
tree25e83c6595dba5e2c02b8ad567c593af9b20ab4c /pugl/pugl.h
parent24aef2fc55c6d84f4ce0e8a3554d2d3dcbf79ee6 (diff)
downloadpugl-bca65c93cd0228d408e0b6029b33da6449a5b567.tar.gz
pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.tar.bz2
pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.zip
Consistently use uint32_t everywhere
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 34b2eb0..145f346 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -1,5 +1,5 @@
/*
- Copyright 2012-2016 David Robillard <http://drobilla.net>
+ Copyright 2012-2019 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -223,8 +223,8 @@ typedef struct {
double y; /**< View-relative Y coordinate. */
double x_root; /**< Root-relative X coordinate. */
double y_root; /**< Root-relative Y coordinate. */
- unsigned state; /**< Bitwise OR of PuglMod flags. */
- unsigned button; /**< 1-relative button number. */
+ uint32_t state; /**< Bitwise OR of PuglMod flags. */
+ uint32_t button; /**< 1-relative button number. */
} PuglEventButton;
/**
@@ -293,8 +293,8 @@ typedef struct {
double y; /**< View-relative Y coordinate. */
double x_root; /**< Root-relative X coordinate. */
double y_root; /**< Root-relative Y coordinate. */
- unsigned state; /**< Bitwise OR of PuglMod flags. */
- unsigned keycode; /**< Raw key code. */
+ uint32_t state; /**< Bitwise OR of PuglMod flags. */
+ uint32_t keycode; /**< Raw key code. */
uint32_t character; /**< Unicode character code, or 0. */
PuglKey special; /**< Special key, or 0. */
uint8_t utf8[8]; /**< UTF-8 string. */
@@ -313,7 +313,7 @@ typedef struct {
double y; /**< View-relative Y coordinate. */
double x_root; /**< Root-relative X coordinate. */
double y_root; /**< Root-relative Y coordinate. */
- unsigned state; /**< Bitwise OR of PuglMod flags. */
+ uint32_t state; /**< Bitwise OR of PuglMod flags. */
PuglCrossingMode mode; /**< Reason for crossing. */
} PuglEventCrossing;
@@ -329,7 +329,7 @@ typedef struct {
double y; /**< View-relative Y coordinate. */
double x_root; /**< Root-relative X coordinate. */
double y_root; /**< Root-relative Y coordinate. */
- unsigned state; /**< Bitwise OR of PuglMod flags. */
+ uint32_t state; /**< Bitwise OR of PuglMod flags. */
bool is_hint; /**< True iff this event is a motion hint. */
bool focus; /**< True iff this is the focused window. */
} PuglEventMotion;
@@ -352,7 +352,7 @@ typedef struct {
double y; /**< View-relative Y coordinate. */
double x_root; /**< Root-relative X coordinate. */
double y_root; /**< Root-relative Y coordinate. */
- unsigned state; /**< Bitwise OR of PuglMod flags. */
+ uint32_t state; /**< Bitwise OR of PuglMod flags. */
double dx; /**< Scroll X distance in lines. */
double dy; /**< Scroll Y distance in lines. */
} PuglEventScroll;