Clean up the code to build successfully on macOS
[platform/core/uifw/dali-core.git] / dali / public-api / events / key-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/key-event.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/event/events/key-event-impl.h>
23
24 namespace Dali
25 {
26 KeyEvent::KeyEvent()
27 : BaseHandle()
28 {
29 }
30
31 KeyEvent::KeyEvent(const KeyEvent& rhs) = default;
32
33 KeyEvent::KeyEvent(KeyEvent&& rhs) = default;
34
35 KeyEvent::~KeyEvent()
36 {
37 }
38
39 KeyEvent& KeyEvent::operator=(const KeyEvent& rhs) = default;
40
41 KeyEvent& KeyEvent::operator=(KeyEvent&& rhs) = default;
42
43 bool KeyEvent::IsShiftModifier() const
44 {
45   return GetImplementation(*this).IsShiftModifier();
46 }
47
48 bool KeyEvent::IsCtrlModifier() const
49 {
50   return GetImplementation(*this).IsCtrlModifier();
51 }
52
53 bool KeyEvent::IsAltModifier() const
54 {
55   return GetImplementation(*this).IsAltModifier();
56 }
57
58 const std::string& KeyEvent::GetCompose() const
59 {
60   return GetImplementation(*this).GetCompose();
61 }
62
63 const std::string& KeyEvent::GetDeviceName() const
64 {
65   return GetImplementation(*this).GetDeviceName();
66 }
67
68 Device::Class::Type KeyEvent::GetDeviceClass() const
69 {
70   return GetImplementation(*this).GetDeviceClass();
71 }
72
73 Device::Subclass::Type KeyEvent::GetDeviceSubclass() const
74 {
75   return GetImplementation(*this).GetDeviceSubclass();
76 }
77
78 const std::string& KeyEvent::GetKeyName() const
79 {
80   return GetImplementation(*this).GetKeyName();
81 }
82
83 const std::string& KeyEvent::GetKeyString() const
84 {
85   return GetImplementation(*this).GetKeyString();
86 }
87
88 const std::string& KeyEvent::GetLogicalKey() const
89 {
90   return GetImplementation(*this).GetLogicalKey();
91 }
92
93 int32_t KeyEvent::GetKeyCode() const
94 {
95   return GetImplementation(*this).GetKeyCode();
96 }
97
98 int32_t KeyEvent::GetKeyModifier() const
99 {
100   return GetImplementation(*this).GetKeyModifier();
101 }
102
103 unsigned long KeyEvent::GetTime() const
104 {
105   return GetImplementation(*this).GetTime();
106 }
107
108 KeyEvent::State KeyEvent::GetState() const
109 {
110   return GetImplementation(*this).GetState();
111 }
112
113 KeyEvent::KeyEvent(Internal::KeyEvent* internal)
114 : BaseHandle(internal)
115 {
116 }
117
118 } // namespace Dali