1 #ifndef DALI_PAN_GESTURE_DEVEL_H
2 #define DALI_PAN_GESTURE_DEVEL_H
5 * Copyright (c) 2020 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/common/dali-common.h>
23 #include <dali/public-api/events/pan-gesture.h>
27 namespace DevelPanGesture
30 * @brief Create a PanGeture for internal.
31 * @param[in] state The state of the PanGesture
33 DALI_CORE_API Dali::PanGesture New(GestureState state);
36 * @brief Set the time the gesture took place.
37 * @param[in] gesture The PanGesture to set
38 * @param[in] time The time the gesture took place
40 DALI_CORE_API void SetTime(Dali::PanGesture& gesture, uint32_t time);
43 * @brief Set the velocity at which the user is moving their fingers.
44 * @param[in] gesture The PanGesture to set
45 * @param[in] velocity The Vector2 in local coordinates to set
47 DALI_CORE_API void SetVelocity(Dali::PanGesture& gesture, const Vector2& velocity);
50 * @brief Set the displacement.
51 * @param[in] gesture The PanGesture to set
52 * @param[in] displacement The Vector2 in local coordinates to set
54 DALI_CORE_API void SetDisplacement(Dali::PanGesture& gesture, const Vector2& displacement);
57 * @brief Set the current touch position of the primary touch point in local actor coordinates.
58 * @param[in] gesture The PanGesture to set.
59 * @param[in] position The current touch position to set.
61 DALI_CORE_API void SetPosition(Dali::PanGesture& gesture, const Vector2& position);
64 * @brief Set the velocity at which the user is moving their fingers.
65 * @param[in] gesture The PanGesture to set
66 * @param[in] screenVelocity The Vector2 in screen coordinates to set
68 DALI_CORE_API void SetScreenVelocity(Dali::PanGesture& gesture, const Vector2& screenVelocity);
71 * @brief Set the screen displacement.
72 * @param[in] gesture The PanGesture to set
73 * @param[in] screenDisplacement The Vector2 in screen coordinates to set
75 DALI_CORE_API void SetScreenDisplacement(Dali::PanGesture& gesture, const Vector2& screenDisplacement);
78 * @brief Set the current touch position of the primary touch point in screen coordinates.
79 * @param[in] gesture The PanGesture to set.
80 * @param[in] screenPosition The Vector2 in screen coordinates to set.
82 DALI_CORE_API void SetScreenPosition(Dali::PanGesture& gesture, const Vector2& screenPosition);
85 * @brief Set the total number of fingers touching the screen in a pan gesture.
86 * @param[in] gesture The PanGesture to set
87 * @param[in] numberOfTouches The total number of fingers touching the screen to set
89 DALI_CORE_API void SetNumberOfTouches(Dali::PanGesture& gesture, uint32_t numberOfTouches);
91 } // namespace DevelPanGesture
95 #endif // DALI_PAN_GESTURE_DEVEL_H