blob: dd8026f3decb347851ecc6d2b556e16db6a23f25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include "animation_system.hpp"
#include "drape/pointers.hpp"
#include "geometry/any_rect2d.hpp"
namespace df
{
class KineticScroller
{
public:
KineticScroller();
void InitGrab(ScreenBase const & modelView, double timeStamp);
bool IsActive() const;
void GrabViewRect(ScreenBase const & modelView, double timeStamp);
void CancelGrab();
drape_ptr<Animation> CreateKineticAnimation(ScreenBase const & modelView);
private:
double m_lastTimestamp;
m2::AnyRectD m_lastRect;
m2::PointD m_direction;
};
} // namespace df
|