From 8dcca49f42627400773dcc707ebaa757cbeef37b Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Thu, 4 Dec 2025 22:23:45 +0800 Subject: Impl sdl opengl renderer. --- include/cru/platform/graphics/cairo/CairoPainter.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cru/platform/graphics') diff --git a/include/cru/platform/graphics/cairo/CairoPainter.h b/include/cru/platform/graphics/cairo/CairoPainter.h index 0833e42b..039cef60 100644 --- a/include/cru/platform/graphics/cairo/CairoPainter.h +++ b/include/cru/platform/graphics/cairo/CairoPainter.h @@ -4,6 +4,7 @@ #include #include +#include #include namespace cru::platform::graphics::cairo { @@ -48,6 +49,8 @@ class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoPainter : public CairoResource, void EndDraw() override; + void SetEndDrawCallback(std::function action); + private: void CheckValidation(); @@ -55,6 +58,7 @@ class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoPainter : public CairoResource, cairo_t* cairo_; bool auto_release_; + std::function end_draw_callback_; cairo_surface_t* cairo_surface_; -- cgit v1.2.3