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>
28 namespace DevelPanGesture
32 * @brief Create a PanGeture for internal.
33 * @param[in] state The state of the PanGesture
35 DALI_CORE_API Dali::PanGesture New(Gesture::State state);
38 * @brief Set the time the gesture took place.
39 * @param[in] gesture The PanGesture to set
40 * @param[in] time The time the gesture took place
42 DALI_CORE_API void SetTime(Dali::PanGesture& gesture, uint32_t time);
45 * @brief Set the velocity at which the user is moving their fingers.
46 * @param[in] gesture The PanGesture to set
47 * @param[in] velocity The Vector2 in local coordinates to set
49 DALI_CORE_API void SetVelocity(Dali::PanGesture& gesture, const Vector2& velocity);
52 * @brief Set the displacement.
53 * @param[in] gesture The PanGesture to set
54 * @param[in] displacement The Vector2 in local coordinates to set
56 DALI_CORE_API void SetDisplacement(Dali::PanGesture& gesture, const Vector2& displacement);
59 * @brief Set the current touch position of the primary touch point in local actor coordinates.
60 * @param[in] gesture The PanGesture to set.
61 * @param[in] position The current touch position to set.
63 DALI_CORE_API void SetPosition(Dali::PanGesture& gesture, const Vector2& position);
66 * @brief Set the velocity at which the user is moving their fingers.
67 * @param[in] gesture The PanGesture to set
68 * @param[in] screenVelocity The Vector2 in screen coordinates to set
70 DALI_CORE_API void SetScreenVelocity(Dali::PanGesture& gesture, const Vector2& screenVelocity);
73 * @brief Set the screen displacement.
74 * @param[in] gesture The PanGesture to set
75 * @param[in] screenDisplacement The Vector2 in screen coordinates to set
77 DALI_CORE_API void SetScreenDisplacement(Dali::PanGesture& gesture, const Vector2& screenDisplacement);
80 * @brief Set the current touch position of the primary touch point in screen coordinates.
81 * @param[in] gesture The PanGesture to set.
82 * @param[in] screenPosition The Vector2 in screen coordinates to set.
84 DALI_CORE_API void SetScreenPosition(Dali::PanGesture& gesture, const Vector2& screenPosition);
87 * @brief Set the total number of fingers touching the screen in a pan gesture.
88 * @param[in] gesture The PanGesture to set
89 * @param[in] numberOfTouches The total number of fingers touching the screen to set
91 DALI_CORE_API void SetNumberOfTouches(Dali::PanGesture& gesture, uint32_t numberOfTouches);
93 } // namespace DevelPanGesture
97 #endif // DALI_PAN_GESTURE_DEVEL_H