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) = default;
35 WheelEvent::~WheelEvent()
39 WheelEvent& WheelEvent::operator=(const WheelEvent& rhs) = default;
41 WheelEvent& WheelEvent::operator=(WheelEvent&& rhs) = default;
43 bool WheelEvent::IsShiftModifier() const
45 return GetImplementation(*this).IsShiftModifier();
48 bool WheelEvent::IsCtrlModifier() const
50 return GetImplementation(*this).IsCtrlModifier();
53 bool WheelEvent::IsAltModifier() const
55 return GetImplementation(*this).IsAltModifier();
58 WheelEvent::Type WheelEvent::GetType() const
60 return GetImplementation(*this).GetType();
63 int32_t WheelEvent::GetDirection() const
65 return GetImplementation(*this).GetDirection();
68 uint32_t WheelEvent::GetModifiers() const
70 return GetImplementation(*this).GetModifiers();
73 const Vector2& WheelEvent::GetPoint() const
75 return GetImplementation(*this).GetPoint();
78 int32_t WheelEvent::GetDelta() const
80 return GetImplementation(*this).GetDelta();
83 uint32_t WheelEvent::GetTime() const
85 return GetImplementation(*this).GetTime();
88 WheelEvent::WheelEvent(Internal::WheelEvent* internal)
89 : BaseHandle(internal)