diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-06 09:16:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-06 16:36:23 +0000 |
commit | a6fe91f6e3ddbad65e534907d29243b138258f6c (patch) | |
tree | 058c6ac5d15539f9ccff7ede8c3fcba210b8dd23 /vcl/inc | |
parent | 7e07225a1b48f3f987a818213256d3cbb9266d87 (diff) |
move drawPolygon into CairoCommon and reuse from X11CairoSalGraphicsImpl
Change-Id: Ifb7514a72f7bc3a65f7f1ad51707405b1a2bd127
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145137
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/headless/CairoCommon.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/headless/CairoCommon.hxx b/vcl/inc/headless/CairoCommon.hxx index 75aec44a4ec7..73a00c54e7e0 100644 --- a/vcl/inc/headless/CairoCommon.hxx +++ b/vcl/inc/headless/CairoCommon.hxx @@ -162,6 +162,11 @@ struct VCL_DLLPUBLIC CairoCommon bool bAntiAlias, tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2); + static void drawPolygon(cairo_t* cr, basegfx::B2DRange* pExtents, + const std::optional<Color>& rLineColor, + const std::optional<Color>& rFillColor, bool bAntiAlias, + sal_uInt32 nPoints, const Point* pPtAry); + static void drawPolyPolygon(cairo_t* cr, basegfx::B2DRange* pExtents, const std::optional<Color>& rLineColor, const std::optional<Color>& rFillColor, bool bAntiAlias, |