1 #ifndef DALI_INTEGRAION_ACCESSIBILITY_GESTURE_STRUCTS_H
2 #define DALI_INTEGRAION_ACCESSIBILITY_GESTURE_STRUCTS_H
5 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/events/gesture.h>
23 #include <dali/public-api/math/vector2.h>
28 struct AccessibilityGestureEvent
30 // Construction & Destruction
35 ~AccessibilityGestureEvent()
42 * The previous touch position of the primary touch point in screen coordinates.
44 Vector2 previousPosition;
47 * This current touch position of the primary touch point in screen coordinates.
49 Vector2 currentPosition;
52 * The time difference between the previous and latest touch motion events (in ms).
54 unsigned long timeDelta;
57 * The total number of fingers touching the screen in a pan gesture.
59 unsigned int numberOfTouches;
63 Clear, ///< There is no state associated with this gesture. @SINCE_1_0.0
64 Started, ///< The touched points on the screen have moved enough to be considered a gesture. @SINCE_1_0.0
65 Continuing, ///< The gesture is continuing. @SINCE_1_0.0
66 Finished, ///< The user has lifted a finger or touched an additional point on the screen. @SINCE_1_0.0
67 Cancelled, ///< The gesture has been cancelled. @SINCE_1_0.0
68 Possible ///< A gesture is possible. @SINCE_1_0.0
77 * @param[in] state The state of the gesture
79 AccessibilityGestureEvent(AccessibilityGestureEvent::State state)
89 #endif // DALI_INTEGRAION_ACCESSIBILITY_GESTURE_STRUCTS_H