2 * Copyright (c) 2015 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 <imf-manager.h>
22 #include <imf-manager-impl.h>
23 #include <adaptor-impl.h>
28 ImfManager::ImfManager()
32 ImfManager::~ImfManager()
36 void ImfManager::Finalize()
38 Internal::Adaptor::ImfManager::GetImplementation(*this).Finalize();
41 ImfManager ImfManager::Get()
43 return Internal::Adaptor::ImfManager::Get();
46 void ImfManager::Activate()
48 Internal::Adaptor::ImfManager::GetImplementation(*this).Activate();
51 void ImfManager::Deactivate()
53 Internal::Adaptor::ImfManager::GetImplementation(*this).Deactivate();
56 bool ImfManager::RestoreAfterFocusLost() const
58 return Internal::Adaptor::ImfManager::GetImplementation(*this).RestoreAfterFocusLost();
61 void ImfManager::SetRestoreAfterFocusLost( bool toggle )
63 Internal::Adaptor::ImfManager::GetImplementation(*this).SetRestoreAfterFocusLost( toggle );
66 void ImfManager::Reset()
68 Internal::Adaptor::ImfManager::GetImplementation(*this).Reset();
71 void ImfManager::NotifyCursorPosition()
73 Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyCursorPosition();
76 void ImfManager::SetCursorPosition( unsigned int SetCursorPosition )
78 Internal::Adaptor::ImfManager::GetImplementation(*this).SetCursorPosition( SetCursorPosition );
81 unsigned int ImfManager::GetCursorPosition() const
83 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetCursorPosition();
86 void ImfManager::SetSurroundingText( const std::string& text )
88 Internal::Adaptor::ImfManager::GetImplementation(*this).SetSurroundingText( text );
91 const std::string& ImfManager::GetSurroundingText() const
93 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetSurroundingText();
96 void ImfManager::NotifyTextInputMultiLine( bool multiLine )
98 Internal::Adaptor::ImfManager::GetImplementation(*this).NotifyTextInputMultiLine( multiLine );
101 ImfManager::TextDirection ImfManager::GetTextDirection()
103 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetTextDirection();
106 Rect<int> ImfManager::GetInputMethodArea()
108 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputMethodArea();
111 void ImfManager::ApplyOptions( const InputMethodOptions& options )
113 Internal::Adaptor::ImfManager::GetImplementation(*this).ApplyOptions( options );
116 void ImfManager::SetInputPanelData( const std::string& data )
118 Internal::Adaptor::ImfManager::GetImplementation(*this).SetInputPanelData( data );
121 void ImfManager::GetInputPanelData( std::string& data )
123 Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputPanelData( data );
126 Dali::ImfManager::State ImfManager::GetInputPanelState()
128 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputPanelState();
131 void ImfManager::SetReturnKeyState( bool visible )
133 Internal::Adaptor::ImfManager::GetImplementation(*this).SetReturnKeyState( visible );
136 void ImfManager::AutoEnableInputPanel( bool enabled )
138 Internal::Adaptor::ImfManager::GetImplementation(*this).AutoEnableInputPanel( enabled );
141 void ImfManager::ShowInputPanel()
143 Internal::Adaptor::ImfManager::GetImplementation(*this).ShowInputPanel();
146 void ImfManager::HideInputPanel()
148 Internal::Adaptor::ImfManager::GetImplementation(*this).HideInputPanel();
151 Dali::ImfManager::KeyboardType ImfManager::GetKeyboardType()
153 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetKeyboardType();
156 std::string ImfManager::GetInputPanelLocale()
158 return Internal::Adaptor::ImfManager::GetImplementation(*this).GetInputPanelLocale();
161 ImfManager::ImfManagerSignalType& ImfManager::ActivatedSignal()
163 return Internal::Adaptor::ImfManager::GetImplementation(*this).ActivatedSignal();
166 ImfManager::ImfEventSignalType& ImfManager::EventReceivedSignal()
168 return Internal::Adaptor::ImfManager::GetImplementation(*this).EventReceivedSignal();
171 ImfManager::StatusSignalType& ImfManager::StatusChangedSignal()
173 return Internal::Adaptor::ImfManager::GetImplementation(*this).StatusChangedSignal();
176 ImfManager::VoidSignalType& ImfManager::ResizedSignal()
178 return Internal::Adaptor::ImfManager::GetImplementation(*this).ResizedSignal();
181 ImfManager::VoidSignalType& ImfManager::LanguageChangedSignal()
183 return Internal::Adaptor::ImfManager::GetImplementation(*this).LanguageChangedSignal();
186 ImfManager::KeyboardTypeSignalType& ImfManager::KeyboardTypeChangedSignal()
188 return Internal::Adaptor::ImfManager::GetImplementation(*this).KeyboardTypeChangedSignal();
191 ImfManager::ImfManager(Internal::Adaptor::ImfManager *impl)