summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-17 11:12:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-17 13:50:32 +0100
commitd7cebf0f211053960fba5c0bf1179df54fd35456 (patch)
treed123f3cabdb653348c7358977add88adc4b6ad0f /include
parentdo not copy executables into instdir yet (by default) (diff)
downloadcore-d7cebf0f211053960fba5c0bf1179df54fd35456.tar.gz
core-d7cebf0f211053960fba5c0bf1179df54fd35456.zip
restore SvtGraphicStroke::set[Start|End]Arrow
partial revert of 743e627bcfc9c87d806109fe6f3f4e2817b73dda because we want to use that then unused code now Change-Id: I94fe173dda053ce1b72b3b776a9855ce9ecc249b
Diffstat (limited to 'include')
-rw-r--r--include/vcl/graphictools.hxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/vcl/graphictools.hxx b/include/vcl/graphictools.hxx
index 3600f1a364fc..70a17fd9279d 100644
--- a/include/vcl/graphictools.hxx
+++ b/include/vcl/graphictools.hxx
@@ -142,6 +142,34 @@ public:
// mutators
/// Set path to stroke
void setPath ( const Polygon& );
+ /** Set the polygon that is put at the start of the line
+
+ The polygon has to be in a special normalized position, and
+ already scaled to the desired size: the center of the stroked
+ path will meet the given polygon at (0,0) from negative y
+ values. Thus, an arrow would have its baseline on the x axis,
+ going upwards to positive y values. Furthermore, the polygon
+ also has to be scaled appropriately: the width of the joining
+ stroke is defined to be SvtGraphicStroke::normalizedArrowWidth
+ (0x10000), i.e. ranging from x=-0x8000 to x=0x8000. If your
+ arrow does have this width, it will fit every stroke with
+ every stroke width exactly.
+ */
+ void setStartArrow ( const PolyPolygon& );
+ /** Set the polygon that is put at the end of the line
+
+ The polygon has to be in a special normalized position, and
+ already scaled to the desired size: the center of the stroked
+ path will meet the given polygon at (0,0) from negative y
+ values. Thus, an arrow would have its baseline on the x axis,
+ going upwards to positive y values. Furthermore, the polygon
+ also has to be scaled appropriately: the width of the joining
+ stroke is defined to be SvtGraphicStroke::normalizedArrowWidth
+ (0x10000), i.e. ranging from x=-0x8000 to x=0x8000. If your
+ arrow does have this width, it will fit every stroke with
+ every stroke width exactly.
+ */
+ void setEndArrow ( const PolyPolygon& );
/// Affine scaling in both X and Y dimensions
void scale ( double fScaleX, double fScaleY );