Adaptor refactor
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / virtual-keyboard.cpp
1 /*
2  * Copyright (c) 2017 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/devel-api/adaptor-framework/virtual-keyboard.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/input/common/virtual-keyboard-impl.h>
23
24 namespace Dali
25 {
26
27 namespace VirtualKeyboard
28 {
29
30 void Show()
31 {
32   Internal::Adaptor::VirtualKeyboard::Show();
33 }
34
35 void Hide()
36 {
37   Internal::Adaptor::VirtualKeyboard::Hide();
38 }
39
40 bool IsVisible()
41 {
42   return Internal::Adaptor::VirtualKeyboard::IsVisible();
43 }
44
45 void ApplySettings( const Property::Map& settingsMap )
46 {
47   Internal::Adaptor::VirtualKeyboard::ApplySettings( settingsMap );
48 }
49
50 void SetReturnKeyType( const InputMethod::ActionButton type )
51 {
52   Internal::Adaptor::VirtualKeyboard::SetReturnKeyType( type );
53 }
54
55 InputMethod::ActionButton GetReturnKeyType()
56 {
57   return Internal::Adaptor::VirtualKeyboard::GetReturnKeyType();
58 }
59
60 void EnablePrediction(const bool enable)
61 {
62   Internal::Adaptor::VirtualKeyboard::EnablePrediction(enable);
63 }
64
65 bool IsPredictionEnabled()
66 {
67   return Internal::Adaptor::VirtualKeyboard::IsPredictionEnabled();
68 }
69
70 Rect<int> GetSizeAndPosition()
71 {
72   return Internal::Adaptor::VirtualKeyboard::GetSizeAndPosition();
73 }
74
75 void RotateTo(int angle)
76 {
77   Internal::Adaptor::VirtualKeyboard::RotateTo(angle);
78 }
79
80 StatusSignalType& StatusChangedSignal()
81 {
82   return Internal::Adaptor::VirtualKeyboard::StatusChangedSignal();
83 }
84
85 KeyboardResizedSignalType& ResizedSignal()
86 {
87   return Internal::Adaptor::VirtualKeyboard::ResizedSignal();
88 }
89
90 LanguageChangedSignalType& LanguageChangedSignal()
91 {
92   return Internal::Adaptor::VirtualKeyboard::LanguageChangedSignal();
93 }
94
95 TextDirection GetTextDirection()
96 {
97   return Internal::Adaptor::VirtualKeyboard::GetTextDirection();
98 }
99
100 } // namespace VirtualKeyboard
101
102 } // namespace Dali