diff options
author | crupest <crupest@outlook.com> | 2022-05-24 23:14:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-24 23:14:45 +0800 |
commit | ad4f06c133dc0475ef6a98cac0fa97f6e0527bf1 (patch) | |
tree | 63b07dc8674afd7ec99380e121eca0f1762ae11e /include/cru/platform/graphics/cairo/CairoGeometry.h | |
parent | ae0694c91602fa1cd278394132bc1320c00deba8 (diff) | |
download | cru-ad4f06c133dc0475ef6a98cac0fa97f6e0527bf1.tar.gz cru-ad4f06c133dc0475ef6a98cac0fa97f6e0527bf1.tar.bz2 cru-ad4f06c133dc0475ef6a98cac0fa97f6e0527bf1.zip |
...
Diffstat (limited to 'include/cru/platform/graphics/cairo/CairoGeometry.h')
-rw-r--r-- | include/cru/platform/graphics/cairo/CairoGeometry.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cru/platform/graphics/cairo/CairoGeometry.h b/include/cru/platform/graphics/cairo/CairoGeometry.h index 0ddedba4..f8391670 100644 --- a/include/cru/platform/graphics/cairo/CairoGeometry.h +++ b/include/cru/platform/graphics/cairo/CairoGeometry.h @@ -9,7 +9,8 @@ class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoGeometry : public CairoResource, public virtual IGeometry { public: CairoGeometry(CairoGraphicsFactory* factory, cairo_path_t* cairo_path, - bool auto_destroy); + const Matrix& transform = Matrix::Identity(), + bool auto_destroy = true); ~CairoGeometry(); bool FillContains(const Point& point) override; @@ -21,6 +22,7 @@ class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoGeometry : public CairoResource, private: cairo_path_t* cairo_path_; + Matrix transform_; bool auto_destroy_; }; |