Dali 3D User Interface Engine
gesture-event-processor.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_GESTURE_EVENT_PROCESSOR_H__
2 #define __DALI_INTERNAL_GESTURE_EVENT_PROCESSOR_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // INTERNAL INCLUDES
28 
29 namespace Dali
30 {
31 
32 struct Gesture;
33 
34 namespace Integration
35 {
36 struct GestureEvent;
37 class GestureManager;
38 class RenderController;
39 }
40 
41 namespace Internal
42 {
43 
44 class Stage;
45 
53 {
54 public:
55 
63 
68 
69 public: // To be called by EventProcessor
70 
75  void ProcessGestureEvent(const Integration::GestureEvent& event);
76 
77 public: // To be called by gesture detectors
78 
83  void AddGestureDetector(GestureDetector* gestureDetector);
84 
89  void RemoveGestureDetector(GestureDetector* gestureDetector);
90 
95  void GestureDetectorUpdated(GestureDetector* gestureDetector);
96 
101  void SetUpdateRequired();
102 
108  void SetGestureProperties( const Gesture& gesture );
109 
110 public: // Called by Core
111 
118  bool NeedsUpdate();
119 
124 
130  void SetPanGesturePredictionMode( int mode );
131 
137  void SetPanGesturePredictionAmount( unsigned int amount );
138 
144  void SetPanGestureMaximumPredictionAmount( unsigned int amount );
145 
151  void SetPanGestureMinimumPredictionAmount( unsigned int amount );
152 
162  void SetPanGesturePredictionAmountAdjustment( unsigned int amount );
163 
169  void SetPanGestureSmoothingMode( int mode );
170 
176  void SetPanGestureSmoothingAmount( float amount );
177 
178 private:
179 
180  // Undefined
183 
184 private:
185 
188 
194 
196 };
197 
198 } // namespace Internal
199 
200 } // namespace Dali
201 
202 #endif // __DALI_INTERNAL_GESTURE_EVENT_PROCESSOR_H__
Dali Docs Home
Read more about Dali