diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-10-19 17:34:22 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:45:55 +0300 |
commit | 5080d7ccfe10ffdd68575e4642be37b7838def2d (patch) | |
tree | a0e834d2346bacf350c64195b7f45e0cd03999b7 /map/animator.hpp | |
parent | 877f0234a4f6e5ef727b93e5ab8f11ec219740c5 (diff) |
fixed flickering during animation and two-fingers scaling.
Diffstat (limited to 'map/animator.hpp')
-rw-r--r-- | map/animator.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/map/animator.hpp b/map/animator.hpp index 6f308af36b..451cf8f2c6 100644 --- a/map/animator.hpp +++ b/map/animator.hpp @@ -8,6 +8,7 @@ class Framework; class RotateScreenTask; class ChangeViewportTask; +class MoveScreenTask; /// Class, which is responsible for /// tracking all map animations. class Animator @@ -18,6 +19,7 @@ private: shared_ptr<RotateScreenTask> m_rotateScreenTask; shared_ptr<ChangeViewportTask> m_changeViewportTask; + shared_ptr<MoveScreenTask> m_moveScreenTask; public: @@ -36,4 +38,10 @@ public: void StopChangeViewport(); /// get screen rotation speed double GetRotationSpeed() const; + /// move screen from one point to another + shared_ptr<MoveScreenTask> const & MoveScreen(m2::PointD const & startPt, + m2::PointD const & endPt, + double speed); + /// stopping screen movement + void StopMoveScreen(); }; |