Ensure BaseHandle class move noexcept (core public-api)
[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) noexcept = default;
34
35 WheelEvent::~WheelEvent() = default;
36
37 WheelEvent& WheelEvent::operator=(const WheelEvent& rhs) = default;
38
39 WheelEvent& WheelEvent::operator=(WheelEvent&& rhs) noexcept = default;
40
41 bool WheelEvent::IsShiftModifier() const
42 {
43   return GetImplementation(*this).IsShiftModifier();
44 }
45
46 bool WheelEvent::IsCtrlModifier() const
47 {
48   return GetImplementation(*this).IsCtrlModifier();
49 }
50
51 bool WheelEvent::IsAltModifier() const
52 {
53   return GetImplementation(*this).IsAltModifier();
54 }
55
56 WheelEvent::Type WheelEvent::GetType() const
57 {
58   return GetImplementation(*this).GetType();
59 }
60
61 int32_t WheelEvent::GetDirection() const
62 {
63   return GetImplementation(*this).GetDirection();
64 }
65
66 uint32_t WheelEvent::GetModifiers() const
67 {
68   return GetImplementation(*this).GetModifiers();
69 }
70
71 const Vector2& WheelEvent::GetPoint() const
72 {
73   return GetImplementation(*this).GetPoint();
74 }
75
76 int32_t WheelEvent::GetDelta() const
77 {
78   return GetImplementation(*this).GetDelta();
79 }
80
81 uint32_t WheelEvent::GetTime() const
82 {
83   return GetImplementation(*this).GetTime();
84 }
85
86 WheelEvent::WheelEvent(Internal::WheelEvent* internal)
87 : BaseHandle(internal)
88 {
89 }
90
91 } // namespace Dali