Dali 3D User Interface Engine
gesture-detector.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_GESTURE_DETECTOR_H__
2 #define __DALI_INTERNAL_GESTURE_DETECTOR_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
26 
27 namespace Dali
28 {
29 
30 namespace Integration
31 {
32 class Core;
33 class GestureRequest;
34 struct TouchEvent;
35 }
36 
37 namespace Internal
38 {
39 
40 namespace Adaptor
41 {
42 
48 class GestureDetector : public RefObject
49 {
50 public:
51 
58  virtual void SendEvent(const Integration::TouchEvent& event) = 0;
59 
64  virtual void Update(const Integration::GestureRequest& request) = 0;
65 
70  Gesture::Type GetType() const { return mType; }
71 
72 protected:
73 
79  GestureDetector(Vector2 screenSize, Gesture::Type detectorType)
80  : mScreenSize(screenSize), mType(detectorType) {}
81 
85  virtual ~GestureDetector() {}
86 
87 protected:
88 
91 };
92 
94 
95 } // namespace Adaptor
96 
97 } // namespace Internal
98 
99 } // namespace Dali
100 
101 #endif // __DALI_INTERNAL_GESTURE_DETECTOR_H__
Dali Docs Home
Read more about Dali