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/wheel-event.h>
22 #include <dali/internal/event/events/wheel-event-impl.h>
26 WheelEvent::WheelEvent()
31 WheelEvent::WheelEvent(const WheelEvent& rhs) = default;
33 WheelEvent::WheelEvent(WheelEvent&& rhs) noexcept = default;
35 WheelEvent::~WheelEvent() = default;
37 WheelEvent& WheelEvent::operator=(const WheelEvent& rhs) = default;
39 WheelEvent& WheelEvent::operator=(WheelEvent&& rhs) noexcept = default;
41 bool WheelEvent::IsShiftModifier() const
43 return GetImplementation(*this).IsShiftModifier();
46 bool WheelEvent::IsCtrlModifier() const
48 return GetImplementation(*this).IsCtrlModifier();
51 bool WheelEvent::IsAltModifier() const
53 return GetImplementation(*this).IsAltModifier();
56 WheelEvent::Type WheelEvent::GetType() const
58 return GetImplementation(*this).GetType();
61 int32_t WheelEvent::GetDirection() const
63 return GetImplementation(*this).GetDirection();
66 uint32_t WheelEvent::GetModifiers() const
68 return GetImplementation(*this).GetModifiers();
71 const Vector2& WheelEvent::GetPoint() const
73 return GetImplementation(*this).GetPoint();
76 int32_t WheelEvent::GetDelta() const
78 return GetImplementation(*this).GetDelta();
81 uint32_t WheelEvent::GetTime() const
83 return GetImplementation(*this).GetTime();
86 WheelEvent::WheelEvent(Internal::WheelEvent* internal)
87 : BaseHandle(internal)