Dali 3D User Interface Engine
gesture-manager.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_GESTURE_MANAGER_H__
2 #define __DALI_INTERNAL_GESTURE_MANAGER_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 // EXTERNAL INCLUDES
25 
26 // INTERNAL INCLUDES
27 #include <events/gesture-detector.h>
28 
29 namespace Dali
30 {
31 
32 namespace Integration
33 {
34 struct TouchEvent;
35 }
36 
37 namespace Internal
38 {
39 
40 namespace Adaptor
41 {
42 
43 class CallbackManager;
44 class CoreEventInterface;
45 class EnvironmentOptions;
46 
54 {
55 public:
56 
64  GestureManager(CoreEventInterface& coreEventInterface, Vector2 screenSize, CallbackManager* callbackManager, EnvironmentOptions& environmentOptions);
65 
69  virtual ~GestureManager();
70 
71 public:
72 
77  void SendEvent(const Integration::TouchEvent& event);
78 
82  void Stop();
83 
90  void SetMinimumPinchDistance(float distance);
91 
92 public: // GestureManager overrides
93 
97  virtual void Register(const Integration::GestureRequest& request);
98 
102  virtual void Unregister(const Integration::GestureRequest& request);
103 
107  virtual void Update(const Integration::GestureRequest& request);
108 
109 private:
110 
115 
116 private:
117 
118  typedef std::vector<GestureDetectorPtr> GestureDetectorContainer;
119 
126  bool mRunning;
127 };
128 
129 } // namespace Adaptor
130 
131 } // namespace Internal
132 
133 } // namespace Dali
134 
135 #endif // __DALI_INTERNAL_GESTURE_MANAGER_H__
Dali Docs Home
Read more about Dali