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::SetReturnKeyType()
74 void SetReturnKeyType( Dali::VirtualKeyboard::ReturnKeyType type );
77 * @copydoc Dali::VirtualKeyboard::GetReturnKeyType()
79 Dali::VirtualKeyboard::ReturnKeyType GetReturnKeyType();
82 * @copydoc Dali::VirtualKeyboard::EnablePrediction()
84 void EnablePrediction(const bool enable);
87 * @copydoc Dali::VirtualKeyboard::IsPredictionEnabled()
89 bool IsPredictionEnabled();
92 * @copydoc Dali::VirtualKeyboard::GetSizeAndPosition()
94 Rect<int> GetSizeAndPosition();
97 * @copydoc Dali::VirtualKeyboard::RotateKeyboard()
99 void RotateTo(int angle);
102 * @copydox Dali::VirtualKeyboard::StatusChangedSignal()
104 Dali::VirtualKeyboard::StatusSignalV2& StatusChangedSignal();
107 * @copydox Dali::VirtualKeyboard::ResizedSignal()
109 Dali::VirtualKeyboard::VoidSignalV2& ResizedSignal();
112 * @copydox Dali::VirtualKeyboard::LanguageChangedSignal()
114 Dali::VirtualKeyboard::VoidSignalV2& LanguageChangedSignal();
117 * @copydoc Dali::VirtualKeyboard::GetTextDirection
119 Dali::VirtualKeyboard::TextDirection GetTextDirection();
121 } // namespace VirtualKeyboard
123 } // namespace Adaptor
125 } // namespace Internal
129 #endif // __DALI_INTERNAL_VIRTUAL_KEYBOARD_H__