diff options
author | David Robillard <d@drobilla.net> | 2021-05-25 12:07:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-25 12:12:59 -0400 |
commit | e6183b3dbe6b83d642cad1dfb296083ce8c53360 (patch) | |
tree | 60ec2f11586489bcd81364654d6964d399484596 /examples | |
parent | 040e94b26395451b78f5cbe0b7f208afcf28af1b (diff) | |
download | pugl-e6183b3dbe6b83d642cad1dfb296083ce8c53360.tar.gz pugl-e6183b3dbe6b83d642cad1dfb296083ce8c53360.tar.bz2 pugl-e6183b3dbe6b83d642cad1dfb296083ce8c53360.zip |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_cairo_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_embed_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_window_demo.c | 2 |
3 files changed, 3 insertions, 3 deletions
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); |