From e6183b3dbe6b83d642cad1dfb296083ce8c53360 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 25 May 2021 12:07:17 -0400 Subject: Rename event structs in a more readable style Aside from reading more naturally, this avoids clashes with types that are not events, like PuglEventFlags. This is also more consistent with the C++ bindings, where "EventExpose" would be quite strange, for example. Apologies for the noise. Aliases to the old names will be preserved in the deprecated API like other things for a short while. --- test/test_cairo.c | 2 +- test/test_gl.c | 4 ++-- test/test_timer.c | 2 +- test/test_vulkan.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/test_cairo.c b/test/test_cairo.c index 077b4c3..2e14121 100644 --- a/test/test_cairo.c +++ b/test/test_cairo.c @@ -36,7 +36,7 @@ typedef struct { } PuglTest; static void -onExpose(PuglView* const view, const PuglEventExpose* const event) +onExpose(PuglView* const view, const PuglExposeEvent* const event) { cairo_t* const cr = (cairo_t*)puglGetContext(view); diff --git a/test/test_gl.c b/test/test_gl.c index 297f81c..a339939 100644 --- a/test/test_gl.c +++ b/test/test_gl.c @@ -34,7 +34,7 @@ typedef struct { } PuglTest; static void -onConfigure(PuglView* const view, const PuglEventConfigure* const event) +onConfigure(PuglView* const view, const PuglConfigureEvent* const event) { (void)view; @@ -48,7 +48,7 @@ onConfigure(PuglView* const view, const PuglEventConfigure* const event) } static void -onExpose(PuglView* const view, const PuglEventExpose* const event) +onExpose(PuglView* const view, const PuglExposeEvent* const event) { (void)view; (void)event; diff --git a/test/test_timer.c b/test/test_timer.c index 69143a9..686a078 100644 --- a/test/test_timer.c +++ b/test/test_timer.c @@ -61,7 +61,7 @@ typedef struct { } PuglTest; static void -onTimer(PuglView* const view, const PuglEventTimer* const event) +onTimer(PuglView* const view, const PuglTimerEvent* const event) { PuglTest* const test = (PuglTest*)puglGetHandle(view); const double time = puglGetTime(puglGetWorld(view)); diff --git a/test/test_vulkan.c b/test/test_vulkan.c index 5ab6ab8..f0f582e 100644 --- a/test/test_vulkan.c +++ b/test/test_vulkan.c @@ -74,7 +74,7 @@ pushString(const char*** const array, } static void -onExpose(PuglView* const view, const PuglEventExpose* const event) +onExpose(PuglView* const view, const PuglExposeEvent* const event) { (void)view; (void)event; -- cgit v1.2.1