aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-06-09 20:26:42 +0800
committercrupest <crupest@outlook.com>2022-06-09 20:26:42 +0800
commitbe5df0d92a49ea332fef06c024c4f779c82ec258 (patch)
tree9d42b810b4b8b3b88c8fcbd1785b07f1a302d92a /include/cru
parente076c0316b2c501fd1745a4c6bac909d3b2c9b1c (diff)
downloadcru-be5df0d92a49ea332fef06c024c4f779c82ec258.tar.gz
cru-be5df0d92a49ea332fef06c024c4f779c82ec258.tar.bz2
cru-be5df0d92a49ea332fef06c024c4f779c82ec258.zip
...
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/platform/graphics/cairo/CairoPainter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cru/platform/graphics/cairo/CairoPainter.h b/include/cru/platform/graphics/cairo/CairoPainter.h
index 83f0329b..477bd289 100644
--- a/include/cru/platform/graphics/cairo/CairoPainter.h
+++ b/include/cru/platform/graphics/cairo/CairoPainter.h
@@ -8,8 +8,8 @@ namespace cru::platform::graphics::cairo {
class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoPainter : public CairoResource,
public virtual IPainter {
public:
- CairoPainter(CairoGraphicsFactory* factory, cairo_t* cairo,
- bool auto_release);
+ CairoPainter(CairoGraphicsFactory* factory, cairo_t* cairo, bool auto_release,
+ cairo_surface_t* cairo_surface = nullptr);
~CairoPainter();
public:
@@ -53,6 +53,8 @@ class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoPainter : public CairoResource,
cairo_t* cairo_;
bool auto_release_;
+ cairo_surface_t* cairo_surface_;
+
std::vector<Rect> layer_stack_;
};
} // namespace cru::platform::graphics::cairo