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/key-event.h>
22 #include <dali/internal/event/events/key-event-impl.h>
32 KeyEvent::KeyEvent( const KeyEvent& rhs ) = default;
34 KeyEvent::KeyEvent( KeyEvent&& rhs ) = default;
40 KeyEvent& KeyEvent::operator=( const KeyEvent& rhs ) = default;
42 KeyEvent& KeyEvent::operator=( KeyEvent&& rhs ) = default;
44 bool KeyEvent::IsShiftModifier() const
46 return GetImplementation( *this ).IsShiftModifier();
49 bool KeyEvent::IsCtrlModifier() const
51 return GetImplementation( *this ).IsCtrlModifier();
54 bool KeyEvent::IsAltModifier() const
56 return GetImplementation( *this ).IsAltModifier();
59 const std::string& KeyEvent::GetCompose() const
61 return GetImplementation( *this ).GetCompose();
64 const std::string& KeyEvent::GetDeviceName() const
66 return GetImplementation( *this ).GetDeviceName();
69 Device::Class::Type KeyEvent::GetDeviceClass() const
71 return GetImplementation( *this ).GetDeviceClass();
74 Device::Subclass::Type KeyEvent::GetDeviceSubclass() const
76 return GetImplementation( *this ).GetDeviceSubclass();
79 const std::string& KeyEvent::GetKeyName() const
81 return GetImplementation( *this ).GetKeyName();
84 const std::string& KeyEvent::GetKeyString() const
86 return GetImplementation( *this ).GetKeyString();
89 const std::string& KeyEvent::GetLogicalKey() const
91 return GetImplementation( *this ).GetLogicalKey();
94 int32_t KeyEvent::GetKeyCode() const
96 return GetImplementation( *this ).GetKeyCode();
99 int32_t KeyEvent::GetKeyModifier() const
101 return GetImplementation( *this ).GetKeyModifier();
104 unsigned long KeyEvent::GetTime() const
106 return GetImplementation( *this ).GetTime();
109 KeyEvent::State KeyEvent::GetState() const
111 return GetImplementation( *this ).GetState();
114 KeyEvent::KeyEvent( Internal::KeyEvent* internal )
115 : BaseHandle( internal )