33826c363e9bd9fa90d23fe2e3e7a90a46124507
[platform/core/uifw/dali-adaptor.git] / adaptors / devel-api / adaptor-framework / imf-manager.cpp
1 /*
2  * Copyright (c) 2015 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 <imf-manager.h>
20
21 // INTERNAL INCLUDES
22 #include <imf-manager-impl.h>
23 #include <adaptor-impl.h>
24
25 namespace Dali
26 {
27
28 ImfManager::ImfManager()
29 {
30 }
31
32 ImfManager::~ImfManager()
33 {
34 }
35
36 ImfManager ImfManager::Get()
37 {
38   return Internal::Adaptor::ImfManager::Get();
39 }
40
41 void ImfManager::Activate()
42 {
43   Internal::Adaptor::ImfManager::GetImplementation(*this).Activate();
44 }
45
46 void ImfManager::Deactivate()
47 {
48   Internal::Adaptor::ImfManager::GetImplementation(*this).Deactivate();
49 }
50
51 bool ImfManager::RestoreAfterFocusLost() const
52 {
53   return Internal::Adaptor::ImfManager::GetImplementation(*this).RestoreAfterFocusLost();
54 }
55
56 void ImfManager::SetRestoreAfterFocusLost( bool toggle )
57 {
58   Internal::Adaptor::ImfManager::GetImplementation(*this).SetRestoreAfterFocusLost( toggle );
59 }
60
61 void ImfManager::Reset()
62 {
63   Internal::Adaptor::ImfManager::GetImplementation(*this).Reset();
64 }
65
66 void ImfManager::NotifyCursorPosition()
67 {
68   Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyCursorPosition();
69 }
70
71 void ImfManager::SetCursorPosition( unsigned int SetCursorPosition )
72 {
73   Internal::Adaptor::ImfManager::GetImplementation(*this).SetCursorPosition( SetCursorPosition );
74 }
75
76 unsigned int ImfManager::GetCursorPosition() const
77 {
78   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetCursorPosition();
79 }
80
81 void ImfManager::SetSurroundingText( const std::string& text )
82 {
83   Internal::Adaptor::ImfManager::GetImplementation(*this).SetSurroundingText( text );
84 }
85
86 const std::string& ImfManager::GetSurroundingText() const
87 {
88   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetSurroundingText();
89 }
90
91 void ImfManager::NotifyTextInputMultiLine( bool multiLine )
92 {
93   Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyTextInputMultiLine( multiLine );
94 }
95
96 ImfManager::TextDirection ImfManager::GetTextDirection()
97 {
98   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetTextDirection();
99 }
100
101 Rect<int> ImfManager::GetInputMethodArea()
102 {
103   return Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputMethodArea();
104 }
105
106 void ImfManager::ApplyOptions( const InputMethodOptions& options )
107 {
108   Internal::Adaptor::ImfManager::GetImplementation(*this).ApplyOptions( options );
109 }
110
111 ImfManager::ImfManagerSignalType& ImfManager::ActivatedSignal()
112 {
113   return Internal::Adaptor::ImfManager::GetImplementation(*this).ActivatedSignal();
114 }
115
116 ImfManager::ImfEventSignalType& ImfManager::EventReceivedSignal()
117 {
118   return Internal::Adaptor::ImfManager::GetImplementation(*this).EventReceivedSignal();
119 }
120
121 ImfManager::StatusSignalType& ImfManager::StatusChangedSignal()
122 {
123   return Internal::Adaptor::ImfManager::GetImplementation(*this).StatusChangedSignal();
124 }
125
126 ImfManager::VoidSignalType& ImfManager::ResizedSignal()
127 {
128   return Internal::Adaptor::ImfManager::GetImplementation(*this).ResizedSignal();
129 }
130
131 ImfManager::VoidSignalType& ImfManager::LanguageChangedSignal()
132 {
133   return Internal::Adaptor::ImfManager::GetImplementation(*this).LanguageChangedSignal();
134 }
135
136 ImfManager::ImfManager(Internal::Adaptor::ImfManager *impl)
137   : BaseHandle(impl)
138 {
139 }
140
141 } // namespace Dali