[dali_2.3.25] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / virtual-keyboard.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/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 namespace VirtualKeyboard
27 {
28 void Show()
29 {
30   Internal::Adaptor::VirtualKeyboard::Show();
31 }
32
33 void Hide()
34 {
35   Internal::Adaptor::VirtualKeyboard::Hide();
36 }
37
38 bool IsVisible()
39 {
40   return Internal::Adaptor::VirtualKeyboard::IsVisible();
41 }
42
43 void ApplySettings(const Property::Map& settingsMap)
44 {
45   Internal::Adaptor::VirtualKeyboard::ApplySettings(settingsMap);
46 }
47
48 void SetReturnKeyType(const InputMethod::ButtonAction::Type type)
49 {
50   Internal::Adaptor::VirtualKeyboard::SetReturnKeyType(type);
51 }
52
53 InputMethod::ButtonAction::Type GetReturnKeyType()
54 {
55   return Internal::Adaptor::VirtualKeyboard::GetReturnKeyType();
56 }
57
58 void EnablePrediction(const bool enable)
59 {
60   Internal::Adaptor::VirtualKeyboard::EnablePrediction(enable);
61 }
62
63 bool IsPredictionEnabled()
64 {
65   return Internal::Adaptor::VirtualKeyboard::IsPredictionEnabled();
66 }
67
68 Rect<int> GetSizeAndPosition()
69 {
70   return Internal::Adaptor::VirtualKeyboard::GetSizeAndPosition();
71 }
72
73 void RotateTo(int angle)
74 {
75   Internal::Adaptor::VirtualKeyboard::RotateTo(angle);
76 }
77
78 TextDirection GetTextDirection()
79 {
80   return Internal::Adaptor::VirtualKeyboard::GetTextDirection();
81 }
82
83 } // namespace VirtualKeyboard
84
85 } // namespace Dali