diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2010-05-14 20:13:53 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2010-05-14 20:13:53 +0000 |
| commit | f1b28615cb0ce50d3e0d9ba841d700a2905fdbec (patch) | |
| tree | 9f79944a2155574686f05d1dd59042cf1b42e35b /src/text-tag-attributes.h | |
| parent | Translations. Belarusian translation by Hleb Valoshka. (diff) | |
| download | inkscape-f1b28615cb0ce50d3e0d9ba841d700a2905fdbec.tar.gz inkscape-f1b28615cb0ce50d3e0d9ba841d700a2905fdbec.zip | |
Add dx (kerning), dy (vertical shifting), and rotate widgets to
text toolbar along with routines needed by them.
(bzr r9417)
Diffstat (limited to 'src/text-tag-attributes.h')
| -rw-r--r-- | src/text-tag-attributes.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/text-tag-attributes.h b/src/text-tag-attributes.h index 7a7ba5763..197bfb73f 100644 --- a/src/text-tag-attributes.h +++ b/src/text-tag-attributes.h @@ -90,15 +90,36 @@ public: position. */ void transform(Geom::Matrix const &matrix, double scale_x, double scale_y, bool extend_zero_length = false); + /** Gets current value of dx vector at \a index. */ + double getDx(unsigned index); + + /** Gets current value of dy vector at \a index. */ + double getDy(unsigned index); + + /** Adds the given value to the dx vector at the given + \a index. The vector is extended if necessary. */ + void addToDx(unsigned index, double delta); + + /** Adds the given value to the dy vector at the given + \a index. The vector is extended if necessary. */ + void addToDy(unsigned index, double delta); + /** Adds the given values to the dx and dy vectors at the given \a index. The vectors are extended if necessary. */ void addToDxDy(unsigned index, Geom::Point const &adjust); + /** Gets current value of rotate vector at \a index. */ + double getRotate(unsigned index); + /** Adds the given value to the rotate vector at the given \a index. The vector is extended if necessary. Delta is measured in degrees, clockwise positive. */ void addToRotate(unsigned index, double delta); + /** Sets rotate vector at the given \a index. The vector is extended if + necessary. Angle is measured in degrees, clockwise positive. */ + void setRotate(unsigned index, double angle); + /** Returns the first coordinates in the x and y vectors. If either is zero length, 0.0 is used for that coordinate. */ Geom::Point firstXY() const; |
