diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_cairo_demo.c | 6 | ||||
-rw-r--r-- | examples/pugl_clipboard_demo.c | 4 | ||||
-rw-r--r-- | examples/pugl_cpp_demo.cpp | 4 | ||||
-rw-r--r-- | examples/pugl_embed_demo.c | 14 | ||||
-rw-r--r-- | examples/pugl_management_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_shader_demo.c | 4 | ||||
-rw-r--r-- | examples/pugl_vulkan_cpp_demo.cpp | 4 | ||||
-rw-r--r-- | examples/pugl_vulkan_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_window_demo.c | 4 |
9 files changed, 22 insertions, 22 deletions
diff --git a/examples/pugl_cairo_demo.c b/examples/pugl_cairo_demo.c index 6608bab..2859ff0 100644 --- a/examples/pugl_cairo_demo.c +++ b/examples/pugl_cairo_demo.c @@ -225,15 +225,15 @@ onEvent(PuglView* view, const PuglEvent* event) break; case PUGL_POINTER_IN: app->entered = true; - puglPostRedisplay(view); + puglObscureView(view); break; case PUGL_POINTER_OUT: app->entered = false; - puglPostRedisplay(view); + puglObscureView(view); break; case PUGL_UPDATE: if (app->opts.continuous) { - puglPostRedisplay(view); + puglObscureView(view); } break; case PUGL_EXPOSE: diff --git a/examples/pugl_clipboard_demo.c b/examples/pugl_clipboard_demo.c index efeb1eb..78ea4e8 100644 --- a/examples/pugl_clipboard_demo.c +++ b/examples/pugl_clipboard_demo.c @@ -116,7 +116,7 @@ static void redisplayView(PuglTestApp* app, PuglView* view) { if (!app->continuous) { - puglPostRedisplay(view); + puglObscureView(view); } } @@ -135,7 +135,7 @@ onEvent(PuglView* view, const PuglEvent* event) break; case PUGL_UPDATE: if (app->continuous) { - puglPostRedisplay(view); + puglObscureView(view); } break; case PUGL_EXPOSE: diff --git a/examples/pugl_cpp_demo.cpp b/examples/pugl_cpp_demo.cpp index 2b3c0a1..6b52d18 100644 --- a/examples/pugl_cpp_demo.cpp +++ b/examples/pugl_cpp_demo.cpp @@ -53,8 +53,8 @@ CubeView::onEvent(const pugl::ConfigureEvent& event) noexcept pugl::Status CubeView::onEvent(const pugl::UpdateEvent&) noexcept { - // Normally, we would post a redisplay: - // return postRedisplay(); + // Normally, we would obscure the view + // return obscure(); // But for testing, use sendEvent() instead: return sendEvent(pugl::ExposeEvent{ diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c index 0274ab4..c14afde 100644 --- a/examples/pugl_embed_demo.c +++ b/examples/pugl_embed_demo.c @@ -92,8 +92,8 @@ swapFocus(PuglTestApp* app) } if (!app->continuous) { - puglPostRedisplay(app->parent); - puglPostRedisplay(app->child); + puglObscureView(app->parent); + puglObscureView(app->child); } } @@ -146,7 +146,7 @@ onParentEvent(PuglView* view, const PuglEvent* event) break; case PUGL_UPDATE: if (app->continuous) { - puglPostRedisplay(view); + puglObscureView(view); } break; case PUGL_EXPOSE: @@ -195,7 +195,7 @@ onEvent(PuglView* view, const PuglEvent* event) break; case PUGL_UPDATE: if (app->continuous) { - puglPostRedisplay(view); + puglObscureView(view); } break; case PUGL_EXPOSE: @@ -213,14 +213,14 @@ onEvent(PuglView* view, const PuglEvent* event) app->lastMouseX = event->motion.x; app->lastMouseY = event->motion.y; if (!app->continuous) { - puglPostRedisplay(view); - puglPostRedisplay(app->parent); + puglObscureView(view); + puglObscureView(app->parent); } break; case PUGL_SCROLL: app->dist = fmaxf(10.0f, app->dist + (float)event->scroll.dy); if (!app->continuous) { - puglPostRedisplay(view); + puglObscureView(view); } break; case PUGL_POINTER_IN: diff --git a/examples/pugl_management_demo.c b/examples/pugl_management_demo.c index 2807837..51d2f43 100644 --- a/examples/pugl_management_demo.c +++ b/examples/pugl_management_demo.c @@ -203,7 +203,7 @@ onCommonEvent(PuglView* view, const PuglEvent* const event) } break; case PUGL_CONFIGURE: - return puglPostRedisplay(view); + return puglObscureView(view); case PUGL_EXPOSE: return onExpose(view, &event->expose); case PUGL_KEY_PRESS: diff --git a/examples/pugl_shader_demo.c b/examples/pugl_shader_demo.c index 4d6821a..2b122a9 100644 --- a/examples/pugl_shader_demo.c +++ b/examples/pugl_shader_demo.c @@ -168,7 +168,7 @@ onEvent(PuglView* view, const PuglEvent* event) onConfigure(view, event->configure.width, event->configure.height); break; case PUGL_UPDATE: - puglPostRedisplay(view); + puglObscureView(view); break; case PUGL_EXPOSE: onExpose(view); @@ -195,7 +195,7 @@ onEvent(PuglView* view, const PuglEvent* event) break; case PUGL_TIMER: if (event->timer.id == resizeTimerId) { - puglPostRedisplay(view); + puglObscureView(view); } break; default: diff --git a/examples/pugl_vulkan_cpp_demo.cpp b/examples/pugl_vulkan_cpp_demo.cpp index fd93394..a1d6954 100644 --- a/examples/pugl_vulkan_cpp_demo.cpp +++ b/examples/pugl_vulkan_cpp_demo.cpp @@ -1522,7 +1522,7 @@ View::onEvent(const pugl::ConfigureEvent& event) pugl::Status View::onEvent(const pugl::UpdateEvent&) { - return postRedisplay(); + return obscure(); } VkResult @@ -1708,7 +1708,7 @@ View::onEvent(const pugl::LoopEnterEvent&) pugl::Status View::onEvent(const pugl::TimerEvent&) { - return postRedisplay(); + return obscure(); } pugl::Status diff --git a/examples/pugl_vulkan_demo.c b/examples/pugl_vulkan_demo.c index 35be97f..708a28f 100644 --- a/examples/pugl_vulkan_demo.c +++ b/examples/pugl_vulkan_demo.c @@ -1009,7 +1009,7 @@ onEvent(PuglView* const view, const PuglEvent* const e) switch (e->type) { case PUGL_UPDATE: - return app->opts.continuous ? puglPostRedisplay(view) : PUGL_SUCCESS; + return app->opts.continuous ? puglObscureView(view) : PUGL_SUCCESS; case PUGL_EXPOSE: return onExpose(view); case PUGL_CONFIGURE: diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 67086bb..cd4fd67 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -95,7 +95,7 @@ static void redisplayView(PuglTestApp* app, PuglView* view) { if (!app->continuous) { - puglPostRedisplay(view); + puglObscureView(view); } } @@ -115,7 +115,7 @@ onEvent(PuglView* view, const PuglEvent* event) break; case PUGL_UPDATE: if (app->continuous) { - puglPostRedisplay(view); + puglObscureView(view); } break; case PUGL_EXPOSE: |