summaryrefslogtreecommitdiff
path: root/drawinglayer/inc
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2020-04-03 23:42:09 +0800
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-14 09:28:41 +0200
commit6ab37705448393c2d4253fb9970caf73142a99f0 (patch)
tree0c864818e7d31c6fd7687ccce6216761475f1186 /drawinglayer/inc
parent6de9dc3c949391ea8c6f68e7ca2b0df992fadb9c (diff)
drawinglayer: refactor GeoTexSvxTiled::iterateTiles
to provide a more generic callback interface and expose it as public to allow other usage. Change-Id: I6bc62a05fee750586f7281d8c24f2133884e77ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/inc')
-rw-r--r--drawinglayer/inc/texture/texture.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/drawinglayer/inc/texture/texture.hxx b/drawinglayer/inc/texture/texture.hxx
index c61d8d2b1674..64595a46222c 100644
--- a/drawinglayer/inc/texture/texture.hxx
+++ b/drawinglayer/inc/texture/texture.hxx
@@ -26,6 +26,7 @@
#include <basegfx/color/bcolor.hxx>
#include <basegfx/utils/gradienttools.hxx>
#include <vector>
+#include <functional>
namespace drawinglayer
@@ -317,8 +318,6 @@ namespace drawinglayer
double mfOffsetX;
double mfOffsetY;
- sal_Int32 iterateTiles(::std::vector< basegfx::B2DHomMatrix >* pMatrices) const;
-
public:
GeoTexSvxTiled(
const basegfx::B2DRange& rRange,
@@ -329,6 +328,9 @@ namespace drawinglayer
// compare operator
virtual bool operator==(const GeoTexSvx& rGeoTexSvx) const override;
+ // Iterate over created tiles with callback provided.
+ void iterateTiles(std::function<void(double fPosX, double fPosY)> aFunc) const;
+
void appendTransformations(::std::vector< basegfx::B2DHomMatrix >& rMatrices) const;
sal_uInt32 getNumberOfTiles() const;
};