diff options
author | David Robillard <d@drobilla.net> | 2019-08-04 17:37:29 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:34:39 +0200 |
commit | 1c585b574df224e44c5063474e4577a3e749be05 (patch) | |
tree | e12932ffeefa8f3bfb38d278f6d38baf09a67063 /pugl/pugl.h | |
parent | 7d72d835097ea87d53b0e439ac759ef956ed0432 (diff) | |
download | pugl-1c585b574df224e44c5063474e4577a3e749be05.tar.gz pugl-1c585b574df224e44c5063474e4577a3e749be05.tar.bz2 pugl-1c585b574df224e44c5063474e4577a3e749be05.zip |
Use consistent naming conventions
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r-- | pugl/pugl.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index 3284a5c..ee83af7 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -262,8 +262,8 @@ typedef struct { double time; /**< Time in seconds. */ double x; /**< View-relative X coordinate. */ double y; /**< View-relative Y coordinate. */ - double x_root; /**< Root-relative X coordinate. */ - double y_root; /**< Root-relative Y coordinate. */ + double xRoot; /**< Root-relative X coordinate. */ + double yRoot; /**< Root-relative Y coordinate. */ uint32_t state; /**< Bitwise OR of PuglMod flags. */ uint32_t button; /**< 1-relative button number. */ } PuglEventButton; @@ -319,8 +319,8 @@ typedef struct { double time; /**< Time in seconds. */ double x; /**< View-relative X coordinate. */ double y; /**< View-relative Y coordinate. */ - double x_root; /**< Root-relative X coordinate. */ - double y_root; /**< Root-relative Y coordinate. */ + double xRoot; /**< Root-relative X coordinate. */ + double yRoot; /**< Root-relative Y coordinate. */ uint32_t state; /**< Bitwise OR of PuglMod flags. */ uint32_t keycode; /**< Raw key code. */ uint32_t key; /**< Unshifted Unicode character code, or 0. */ @@ -338,8 +338,8 @@ typedef struct { double time; /**< Time in seconds. */ double x; /**< View-relative X coordinate. */ double y; /**< View-relative Y coordinate. */ - double x_root; /**< Root-relative X coordinate. */ - double y_root; /**< Root-relative Y coordinate. */ + double xRoot; /**< Root-relative X coordinate. */ + double yRoot; /**< Root-relative Y coordinate. */ uint32_t state; /**< Bitwise OR of PuglMod flags. */ uint32_t keycode; /**< Raw key code. */ uint32_t character; /**< Unicode character code */ @@ -355,8 +355,8 @@ typedef struct { double time; /**< Time in seconds. */ double x; /**< View-relative X coordinate. */ double y; /**< View-relative Y coordinate. */ - double x_root; /**< Root-relative X coordinate. */ - double y_root; /**< Root-relative Y coordinate. */ + double xRoot; /**< Root-relative X coordinate. */ + double yRoot; /**< Root-relative Y coordinate. */ uint32_t state; /**< Bitwise OR of PuglMod flags. */ PuglCrossingMode mode; /**< Reason for crossing. */ } PuglEventCrossing; @@ -370,10 +370,10 @@ typedef struct { double time; /**< Time in seconds. */ double x; /**< View-relative X coordinate. */ double y; /**< View-relative Y coordinate. */ - double x_root; /**< Root-relative X coordinate. */ - double y_root; /**< Root-relative Y coordinate. */ + double xRoot; /**< Root-relative X coordinate. */ + double yRoot; /**< Root-relative Y coordinate. */ uint32_t state; /**< Bitwise OR of PuglMod flags. */ - bool is_hint; /**< True iff this event is a motion hint. */ + bool isHint; /**< True iff this event is a motion hint. */ bool focus; /**< True iff this is the focused window. */ } PuglEventMotion; @@ -392,8 +392,8 @@ typedef struct { double time; /**< Time in seconds. */ double x; /**< View-relative X coordinate. */ double y; /**< View-relative Y coordinate. */ - double x_root; /**< Root-relative X coordinate. */ - double y_root; /**< Root-relative Y coordinate. */ + double xRoot; /**< Root-relative X coordinate. */ + double yRoot; /**< Root-relative Y coordinate. */ uint32_t state; /**< Bitwise OR of PuglMod flags. */ double dx; /**< Scroll X distance in lines. */ double dy; /**< Scroll Y distance in lines. */ @@ -577,10 +577,10 @@ puglInitWindowMinSize(PuglView* view, int width, int height); */ PUGL_API void puglInitWindowAspectRatio(PuglView* view, - int min_x, - int min_y, - int max_x, - int max_y); + int minX, + int minY, + int maxX, + int maxY); /** Enable or disable resizing before creating a window. |