summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx
diff options
context:
space:
mode:
authorKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-02-08 21:02:18 +0700
committerKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-02-08 21:06:51 +0700
commita330f38093e2643a26239557050561afae9ff23d (patch)
treee31e00f724c06eeeba35ea649e1dbab959fb5ec8 /basegfx/inc/basegfx
parent344ebc80330cc4f6ff9858ab6d06735568b87bf9 (diff)
Recover some methods needed by windows directx
Diffstat (limited to 'basegfx/inc/basegfx')
-rw-r--r--basegfx/inc/basegfx/range/b2drange.hxx6
-rw-r--r--basegfx/inc/basegfx/tools/unopolypolygon.hxx3
2 files changed, 9 insertions, 0 deletions
diff --git a/basegfx/inc/basegfx/range/b2drange.hxx b/basegfx/inc/basegfx/range/b2drange.hxx
index 7d7edb05c654..b8a51aeb8800 100644
--- a/basegfx/inc/basegfx/range/b2drange.hxx
+++ b/basegfx/inc/basegfx/range/b2drange.hxx
@@ -292,6 +292,12 @@ namespace basegfx
MyBasicRange maRangeY;
};
+ /** Round double to nearest integer for 2D range
+
+ @return the nearest integer for this range
+ */
+ BASEGFX_DLLPUBLIC B2IRange fround(const B2DRange& rRange);
+
/** Compute the set difference of the two given ranges
This method calculates the symmetric difference (aka XOR)
diff --git a/basegfx/inc/basegfx/tools/unopolypolygon.hxx b/basegfx/inc/basegfx/tools/unopolypolygon.hxx
index 558ab7ea4c43..ca04b7a5f776 100644
--- a/basegfx/inc/basegfx/tools/unopolypolygon.hxx
+++ b/basegfx/inc/basegfx/tools/unopolypolygon.hxx
@@ -95,6 +95,9 @@ namespace unotools
sal_Int32 nPointIndex,
sal_Int32 nNumberOfPoints ) const;
+ /// Get cow copy of internal polygon. not thread-safe outside this object.
+ B2DPolyPolygon getPolyPolygonUnsafe() const;
+
/// Called whenever internal polypolygon gets modified
virtual void modifying() const {}