diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-03-20 20:12:31 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-03-20 20:12:31 +0000 |
| commit | f47466c701b2256b2ce232f6d311d2be47136eab (patch) | |
| tree | 656e3f47c008066434975b3b0ed8c20832a83116 /src/desktop.h | |
| parent | Modify CanvasXYGrid to work with rotated canvas. (diff) | |
| download | inkscape-f47466c701b2256b2ce232f6d311d2be47136eab.tar.gz inkscape-f47466c701b2256b2ce232f6d311d2be47136eab.zip | |
Implement rotation via desktop to window affine.
Remove rotation via viewbox.
Still some work to do...
(bzr r15603)
Diffstat (limited to 'src/desktop.h')
| -rw-r--r-- | src/desktop.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/desktop.h b/src/desktop.h index 3dc11b557..633e66046 100644 --- a/src/desktop.h +++ b/src/desktop.h @@ -351,6 +351,8 @@ public: void rotate_absolute_center_point (Geom::Point const &c, double const rotate); void rotate_relative_center_point (Geom::Point const &c, double const rotate); + double current_rotation() const { return _current_affine.getRotation(); } + void scroll_absolute (Geom::Point const &point, bool is_scrolling = false); void scroll_relative (Geom::Point const &delta, bool is_scrolling = false); void scroll_relative_in_svg_coords (double dx, double dy, bool is_scrolling = false); @@ -478,6 +480,10 @@ private: return _d2w.descrim(); } + double getRotation() const { + return _rotate.angle(); + } + void setOffset( Geom::Point offset ) { _offset = offset; } |
