From 1c585b574df224e44c5063474e4577a3e749be05 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Aug 2019 17:37:29 +0200 Subject: Use consistent naming conventions --- pugl/pugl.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'pugl/pugl.h') 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. -- cgit v1.2.1