Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2014-07-02 15:55:09 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:19:18 +0300
commit495712584bbc60765fd55b06c49205b2651d184a (patch)
treea2e743a8c19eace6f2a98907016b025a3bf4e838 /map/navigator.hpp
parent979f82bf09c3214106400eaf14c61f8f84c046b0 (diff)
[core] zoom-in\zoom-out animation
Diffstat (limited to 'map/navigator.hpp')
-rw-r--r--map/navigator.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/map/navigator.hpp b/map/navigator.hpp
index 8b0974a975..1ea971d9f5 100644
--- a/map/navigator.hpp
+++ b/map/navigator.hpp
@@ -1,6 +1,8 @@
#pragma once
#include "scales_processor.hpp"
+#include "../anim/task.hpp"
+
#include "../geometry/screenbase.hpp"
#include "../base/matrix.hpp"
@@ -8,7 +10,7 @@
#include "../std/function.hpp"
#include "../std/scoped_ptr.hpp"
-
+#include "../std/shared_ptr.hpp"
/// Calculates screen parameters in navigation (dragging, scaling, etc.).
class Navigator
@@ -54,8 +56,10 @@ public:
bool IsRotatingDuringScale() const;
void ScaleToPoint(m2::PointD const & pt, double factor, double timeInSec);
+ shared_ptr<anim::Task> ScaleToPointAnim(m2::PointD const & pt, double factor, double timeInSec);
void Scale(double scale);
+ shared_ptr<anim::Task> ScaleAnim(double scale);
void Rotate(double angle);
void SetAngle(double angle);
void SetOrg(m2::PointD const & org);