OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef SkTouchGesture_DEFINED | 8 #ifndef SkTouchGesture_DEFINED |
9 #define SkTouchGesture_DEFINED | 9 #define SkTouchGesture_DEFINED |
10 | 10 |
11 #include "SkTDArray.h" | 11 #include "../private/SkTDArray.h" |
12 #include "SkMatrix.h" | 12 #include "SkMatrix.h" |
13 | 13 |
14 struct SkFlingState { | 14 struct SkFlingState { |
15 SkFlingState() : fActive(false) {} | 15 SkFlingState() : fActive(false) {} |
16 | 16 |
17 bool isActive() const { return fActive; } | 17 bool isActive() const { return fActive; } |
18 void stop() { fActive = false; } | 18 void stop() { fActive = false; } |
19 | 19 |
20 void reset(float sx, float sy); | 20 void reset(float sx, float sy); |
21 bool evaluateMatrix(SkMatrix* matrix); | 21 bool evaluateMatrix(SkMatrix* matrix); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 void flushLocalM(); | 69 void flushLocalM(); |
70 int findRec(void* owner) const; | 70 int findRec(void* owner) const; |
71 void appendNewRec(void* owner, float x, float y); | 71 void appendNewRec(void* owner, float x, float y); |
72 float computePinch(const Rec&, const Rec&); | 72 float computePinch(const Rec&, const Rec&); |
73 float limitTotalZoom(float scale) const; | 73 float limitTotalZoom(float scale) const; |
74 bool handleDblTap(float, float); | 74 bool handleDblTap(float, float); |
75 }; | 75 }; |
76 | 76 |
77 #endif | 77 #endif |
OLD | NEW |