Clean up the code to build successfully on macOS
[platform/core/uifw/dali-core.git] / dali / public-api / events / wheel-event.cpp
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/public-api/events/wheel-event.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/event/events/wheel-event-impl.h>
23
24 namespace Dali
25 {
26 WheelEvent::WheelEvent()
27 : BaseHandle()
28 {
29 }
30
31 WheelEvent::WheelEvent(const WheelEvent& rhs) = default;
32
33 WheelEvent::WheelEvent(WheelEvent&& rhs) = default;
34
35 WheelEvent::~WheelEvent()
36 {
37 }
38
39 WheelEvent& WheelEvent::operator=(const WheelEvent& rhs) = default;
40
41 WheelEvent& WheelEvent::operator=(WheelEvent&& rhs) = default;
42
43 bool WheelEvent::IsShiftModifier() const
44 {
45   return GetImplementation(*this).IsShiftModifier();
46 }
47
48 bool WheelEvent::IsCtrlModifier() const
49 {
50   return GetImplementation(*this).IsCtrlModifier();
51 }
52
53 bool WheelEvent::IsAltModifier() const
54 {
55   return GetImplementation(*this).IsAltModifier();
56 }
57
58 WheelEvent::Type WheelEvent::GetType() const
59 {
60   return GetImplementation(*this).GetType();
61 }
62
63 int32_t WheelEvent::GetDirection() const
64 {
65   return GetImplementation(*this).GetDirection();
66 }
67
68 uint32_t WheelEvent::GetModifiers() const
69 {
70   return GetImplementation(*this).GetModifiers();
71 }
72
73 const Vector2& WheelEvent::GetPoint() const
74 {
75   return GetImplementation(*this).GetPoint();
76 }
77
78 int32_t WheelEvent::GetDelta() const
79 {
80   return GetImplementation(*this).GetDelta();
81 }
82
83 uint32_t WheelEvent::GetTime() const
84 {
85   return GetImplementation(*this).GetTime();
86 }
87
88 WheelEvent::WheelEvent(Internal::WheelEvent* internal)
89 : BaseHandle(internal)
90 {
91 }
92
93 } // namespace Dali