Dali 3D User Interface Engine
gesture-requests.h
Go to the documentation of this file.
1 #ifndef __DALI_INTEGRATION_GESTURE_REQUESTS_H__
2 #define __DALI_INTEGRATION_GESTURE_REQUESTS_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
23 
24 namespace Dali DALI_IMPORT_API
25 {
26 
27 namespace Integration
28 {
29 
34 {
35  // Creation & Destruction
36 
41  GestureRequest(Gesture::Type typeRequired) : type(typeRequired)
42  {
43  }
44 
48  virtual ~GestureRequest()
49  {
50  }
51 
52  // Data Members
53 
55 };
56 
61 {
62  // Creation & Destruction
63 
68  : GestureRequest(Gesture::Pan),
69  minTouches(1),
70  maxTouches(1)
71  {
72  }
73 
77  virtual ~PanGestureRequest()
78  {
79  }
80 
81  // Data Members
82 
83  unsigned int minTouches;
84  unsigned int maxTouches;
85 };
86 
91 {
92  // Creation & Destruction
93 
98  : GestureRequest(Gesture::Pinch)
99  {
100  }
101 
106  {
107  }
108 };
109 
114 {
115  // Creation & Destruction
116 
121  : GestureRequest(Gesture::Tap),
122  minTaps(1),
123  maxTaps(1),
124  minTouches(1),
125  maxTouches(1)
126  {
127  }
128 
132  virtual ~TapGestureRequest()
133  {
134  }
135 
136  // Data Members
137 
138  unsigned int minTaps;
139  unsigned int maxTaps;
140  unsigned int minTouches;
141  unsigned int maxTouches;
142 };
143 
148 {
149  // Creation & Destruction
150 
155  : GestureRequest(Gesture::LongPress),
156  minTouches(1),
157  maxTouches(1)
158  {
159  }
160 
165  {
166  }
167 
168  // Data Members
169 
170  unsigned int minTouches;
171  unsigned int maxTouches;
172 };
173 
174 } // namespace Integration
175 
176 } // namespace Dali
177 
178 #endif // __DALI_INTEGRATION_GESTURE_REQUESTS_H__
Dali Docs Home
Read more about Dali