1 #ifndef __DALI_INTERNAL_VIRTUAL_KEYBOARD_H__
2 #define __DALI_INTERNAL_VIRTUAL_KEYBOARD_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <Ecore_IMF.h>
25 #include <virtual-keyboard.h>
37 * Implementation of the virtual keyboard namespace
39 namespace VirtualKeyboard
43 * Connect the virtual keyboard callbacks.
44 * To get the virtual keyboard callbacks then you have to connect these callback.
45 * If you don't connect callbacks, you can't get virtual keyboard signals.
46 * The signals are StatusChangedSignal, ResizedSignal and LanguageChangedSignal.
48 void ConnectCallbacks( Ecore_IMF_Context *imfContext );
51 * Disconnect the virtual keyboard callbacks.
52 * The signals are StatusChangedSignal, ResizedSignal and LanguageChangedSignal.
54 void DisconnectCallbacks( Ecore_IMF_Context *imfContext );
57 * @copydoc Dali::VirtualKeyboard::Show()
62 * @copydoc Dali::VirtualKeyboard::Hide()
67 * @copydoc Dali::VirtualKeyboard::IsVisible()
72 * @copydoc Dali::VirtualKeyboard::ApplySettings()
74 void ApplySettings( const Property::Map& settingsMap );
77 * @copydoc Dali::VirtualKeyboard::SetReturnKeyType()
79 void SetReturnKeyType( const Dali::InputMethod::ActionButton type );
82 * @copydoc Dali::VirtualKeyboard::GetReturnKeyType()
84 Dali::InputMethod::ActionButton GetReturnKeyType();
87 * @copydoc Dali::VirtualKeyboard::EnablePrediction()
89 void EnablePrediction(const bool enable);
92 * @copydoc Dali::VirtualKeyboard::IsPredictionEnabled()
94 bool IsPredictionEnabled();
97 * @copydoc Dali::VirtualKeyboard::GetSizeAndPosition()
99 Rect<int> GetSizeAndPosition();
102 * @copydoc Dali::VirtualKeyboard::RotateKeyboard()
104 void RotateTo(int angle);
107 * @copydox Dali::VirtualKeyboard::StatusChangedSignal()
109 Dali::VirtualKeyboard::StatusSignalType& StatusChangedSignal();
112 * @copydox Dali::VirtualKeyboard::ResizedSignal()
114 Dali::VirtualKeyboard::VoidSignalType& ResizedSignal();
117 * @copydox Dali::VirtualKeyboard::LanguageChangedSignal()
119 Dali::VirtualKeyboard::VoidSignalType& LanguageChangedSignal();
122 * @copydoc Dali::VirtualKeyboard::GetTextDirection
124 Dali::VirtualKeyboard::TextDirection GetTextDirection();
126 } // namespace VirtualKeyboard
128 } // namespace Adaptor
130 } // namespace Internal
134 #endif // __DALI_INTERNAL_VIRTUAL_KEYBOARD_H__