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. --- examples/pugl_cairo_demo.c | 2 +- examples/pugl_embed_demo.c | 2 +- examples/pugl_window_demo.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c index 67bc13c..1d998a8 100644 --- a/examples/pugl_cairo_demo.c +++ b/examples/pugl_cairo_demo.c @@ -124,7 +124,7 @@ postButtonRedisplay(PuglView* view) } static void -onDisplay(PuglTestApp* app, PuglView* view, const PuglEventExpose* event) +onDisplay(PuglTestApp* app, PuglView* view, const PuglExposeEvent* event) { cairo_t* cr = (cairo_t*)puglGetContext(view); diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c index 677b94f..311ab3b 100644 --- a/examples/pugl_embed_demo.c +++ b/examples/pugl_embed_demo.c @@ -112,7 +112,7 @@ swapFocus(PuglTestApp* app) } static void -onKeyPress(PuglView* view, const PuglEventKey* event, const char* prefix) +onKeyPress(PuglView* view, const PuglKeyEvent* event, const char* prefix) { PuglTestApp* app = (PuglTestApp*)puglGetHandle(view); PuglRect frame = puglGetFrame(view); diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index f7d5b2c..1e38aa1 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -72,7 +72,7 @@ onDisplay(PuglView* view) } static void -onKeyPress(PuglView* view, const PuglEventKey* event) +onKeyPress(PuglView* view, const PuglKeyEvent* event) { PuglWorld* world = puglGetWorld(view); PuglTestApp* app = (PuglTestApp*)puglGetWorldHandle(world); -- cgit v1.2.1