summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-11-27 11:51:32 +0100
committerAndras Timar <andras.timar@collabora.com>2013-11-27 06:39:46 -0600
commit26bfc77430c40530113d3ce739896139522565f4 (patch)
treec5a06c144d7830e7c7a899aa9e5e2fd4a6874166 /include
parent51a8b809a999b390b26287c9f3d4d45fc8ecd8f9 (diff)
EMF+: Line thickness has to be considered when drawing the caps.
Change-Id: I6043ee3c214f453afaef06125993c73be624c07e Reviewed-on: https://gerrit.libreoffice.org/6832 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/basegfx/polygon/b2dlinegeometry.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/basegfx/polygon/b2dlinegeometry.hxx b/include/basegfx/polygon/b2dlinegeometry.hxx
index 934158f88a2f..62e230f918a0 100644
--- a/include/basegfx/polygon/b2dlinegeometry.hxx
+++ b/include/basegfx/polygon/b2dlinegeometry.hxx
@@ -63,6 +63,10 @@ namespace basegfx
again calculating the length (which may be expensive with beziers). If 0.0 is
given, the length is calculated on demand.
+ @param fShift
+ When it is necessary to count with the thickness of the line, it
+ makes sense to move the start position slightly - so define the shift.
+
@return
The Line start and end polygon, correctly rotated and scaled
*/
@@ -73,7 +77,8 @@ namespace basegfx
double fWidth,
double fCandidateLength = 0.0, // 0.0 -> calculate self
double fDockingPosition = 0.5, // 0->top, 1->bottom
- double* pConsumedLength = 0L);
+ double* pConsumedLength = 0L,
+ double fShift = 0.0);
/** create filled polygon geometry for lines with a line width