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