summaryrefslogtreecommitdiff
path: root/include/svx/xpoly.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-12-29 22:25:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-30 17:41:32 +0100
commit90668f3473f4e52cec823ad39c6fcb44ba7c089b (patch)
tree142e529b364ec70271b7c2696e58b88bafbd4ef9 /include/svx/xpoly.hxx
parent97c3280afbb960bd5567bb56af4090fc38030df7 (diff)
use Degree10 in XPolygon
Change-Id: I1820455de46bd428e1fbc0601aba58d377fdb930 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108488 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/xpoly.hxx')
-rw-r--r--include/svx/xpoly.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/svx/xpoly.hxx b/include/svx/xpoly.hxx
index 7f50a4c76281..a2074ef8e42d 100644
--- a/include/svx/xpoly.hxx
+++ b/include/svx/xpoly.hxx
@@ -23,6 +23,7 @@
#include <svx/svxdllapi.h>
#include <o3tl/cow_wrapper.hxx>
#include <tools/poly.hxx>
+#include <tools/degree.hxx>
class Point;
namespace tools { class Rectangle; }
@@ -48,9 +49,9 @@ class SVXCORE_DLLPUBLIC XPolygon final
// auxiliary functions for Bezier conversion
void SubdivideBezier(sal_uInt16 nPos, bool bCalcFirst, double fT);
void GenBezArc(const Point& rCenter, tools::Long nRx, tools::Long nRy,
- tools::Long nXHdl, tools::Long nYHdl, sal_uInt16 nStart, sal_uInt16 nEnd,
+ tools::Long nXHdl, tools::Long nYHdl, Degree10 nStart, Degree10 nEnd,
sal_uInt16 nQuad, sal_uInt16 nFirst);
- static bool CheckAngles(sal_uInt16& nStart, sal_uInt16 nEnd, sal_uInt16& nA1, sal_uInt16& nA2);
+ static bool CheckAngles(Degree10& nStart, Degree10 nEnd, Degree10& nA1, Degree10& nA2);
public:
XPolygon( sal_uInt16 nSize=16 );
@@ -59,7 +60,7 @@ public:
XPolygon( const tools::Polygon& rPoly );
XPolygon( const tools::Rectangle& rRect, tools::Long nRx = 0, tools::Long nRy = 0 );
XPolygon( const Point& rCenter, tools::Long nRx, tools::Long nRy,
- sal_uInt16 nStartAngle = 0, sal_uInt16 nEndAngle = 3600,
+ Degree10 nStartAngle = 0_deg10, Degree10 nEndAngle = 3600_deg10,
bool bClose = true );
~XPolygon();