1 #ifndef __DALI_TAP_GESTURE_H__
2 #define __DALI_TAP_GESTURE_H__
5 * Copyright (c) 2015 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 * @addtogroup dali-core-events
33 * @brief A TapGesture is emitted when the user taps the screen with the stated number of fingers a stated number of times.
35 * This is a discrete gesture so does not have any state information.
36 * @see TapGestureDetector
38 struct DALI_IMPORT_API TapGesture : public Gesture
40 // Construction & Destruction
43 * @brief Default Constructor
48 * @brief Copy constructor
50 TapGesture( const TapGesture& rhs );
53 * @brief Assignment operator
55 TapGesture& operator=( const TapGesture& rhs );
58 * @brief Virtual destructor
60 virtual ~TapGesture();
65 * @brief The number of taps in this tap gesture.
67 unsigned int numberOfTaps;
70 * @brief The number of touch points in this tap gesture, i.e. the number of fingers the user had on the
71 * screen to generate the tap gesture.
73 unsigned int numberOfTouches;
76 * @brief This is the point, in screen coordinates, where the tap occurred.
78 * If a multi-touch tap, then this is the centroid of all the touch points.
83 * @brief This is the point, in local actor coordinates, where the tap occurred.
85 * If a multi-touch tap, then this is the centroid of all the touch points.
86 * @return The point where tap has occurred (in local actor coordinates).
96 #endif // __DALI_TAP_GESTURE_H__