2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/public-api/events/pan-gesture.h>
22 #include <dali/internal/event/events/pan-gesture/pan-gesture-impl.h>
23 #include <dali/public-api/common/dali-common.h>
27 PanGesture::PanGesture(Internal::PanGesture* internal)
32 PanGesture::PanGesture() = default;
34 PanGesture::PanGesture(const PanGesture& rhs) = default;
36 PanGesture::PanGesture(PanGesture&& rhs) = default;
38 PanGesture& PanGesture::operator=(const PanGesture& rhs) = default;
40 PanGesture& PanGesture::operator=(PanGesture&& rhs) = default;
42 PanGesture::~PanGesture() = default;
44 const Vector2& PanGesture::GetVelocity() const
46 return GetImplementation(*this).GetVelocity();
49 const Vector2& PanGesture::GetDisplacement() const
51 return GetImplementation(*this).GetDisplacement();
54 const Vector2& PanGesture::GetPosition() const
56 return GetImplementation(*this).GetPosition();
59 const Vector2& PanGesture::GetScreenVelocity() const
61 return GetImplementation(*this).GetScreenVelocity();
64 const Vector2& PanGesture::GetScreenDisplacement() const
66 return GetImplementation(*this).GetScreenDisplacement();
69 const Vector2& PanGesture::GetScreenPosition() const
71 return GetImplementation(*this).GetScreenPosition();
74 uint32_t PanGesture::GetNumberOfTouches() const
76 return GetImplementation(*this).GetNumberOfTouches();
79 float PanGesture::GetSpeed() const
81 return GetImplementation(*this).GetSpeed();
84 float PanGesture::GetDistance() const
86 return GetImplementation(*this).GetDistance();
89 float PanGesture::GetScreenSpeed() const
91 return GetImplementation(*this).GetScreenSpeed();
94 float PanGesture::GetScreenDistance() const
96 return GetImplementation(*this).GetScreenDistance();