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 ImfManager::ImfManagerSignalType& ImfManager::ActivatedSignal()
113 return Internal::Adaptor::ImfManager::GetImplementation(*this).ActivatedSignal();
116 ImfManager::ImfEventSignalType& ImfManager::EventReceivedSignal()
118 return Internal::Adaptor::ImfManager::GetImplementation(*this).EventReceivedSignal();
121 ImfManager::StatusSignalType& ImfManager::StatusChangedSignal()
123 return Internal::Adaptor::ImfManager::GetImplementation(*this).StatusChangedSignal();
126 ImfManager::VoidSignalType& ImfManager::ResizedSignal()
128 return Internal::Adaptor::ImfManager::GetImplementation(*this).ResizedSignal();
131 ImfManager::VoidSignalType& ImfManager::LanguageChangedSignal()
133 return Internal::Adaptor::ImfManager::GetImplementation(*this).LanguageChangedSignal();
136 ImfManager::ImfManager(Internal::Adaptor::ImfManager *impl)