2 * Copyright(c) 2017 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 using System.Runtime.InteropServices;
20 using System.ComponentModel;
25 /// Specifically manages the input method framework which enables the virtual or hardware keyboards.
27 /// <since_tizen> 3 </since_tizen>
28 public class ImfManager : BaseHandle
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal ImfManager(IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ImfManager_SWIGUpcast(cPtr), cMemoryOwn)
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfManager obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
45 /// <param name="type">Dispose Type</param>
46 /// <since_tizen> 3 </since_tizen>
47 /// Please DO NOT use! This will be deprecated!
48 /// Dispose() method in Singletone classes (ex: FocusManager, StyleManager, VisualFactory, IMFManager, TtsPlayer, Window) is not required.
49 /// Because it is Sigletone, so it is alive for one thread until the NUI is terminated, so it never be disposed.
50 [EditorBrowsable(EditorBrowsableState.Never)]
51 protected override void Dispose(DisposeTypes type)
58 if (type == DisposeTypes.Explicit)
61 //Release your own managed resources here.
62 //You should release all of your own disposable objects here.
66 //Release your own unmanaged resources here.
67 //You should not access any managed member here except static instance.
68 //because the execution order of Finalizes is non-deterministic.
70 if (_keyboardTypeChangedEventCallback != null)
72 KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback);
75 if (_imfManagerLanguageChangedEventCallback != null)
77 LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
80 if (_imfManagerResizedEventCallback != null)
82 ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
85 if (_imfManagerStatusChangedEventCallback != null)
87 StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
90 if (_imfManagerEventReceivedEventCallback != null)
92 EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
95 if (_imfManagerActivatedEventCallback != null)
97 ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
100 if (swigCPtr.Handle != global::System.IntPtr.Zero)
105 NDalicManualPINVOKE.delete_ImfManager(swigCPtr);
107 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
114 /// This structure is used to pass on data from the IMF regarding predictive text.
116 /// <since_tizen> 3 </since_tizen>
117 public class ImfEventData : global::System.IDisposable
119 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
123 /// <since_tizen> 3 </since_tizen>
124 protected bool swigCMemOwn;
126 internal ImfEventData(IntPtr cPtr, bool cMemoryOwn)
128 swigCMemOwn = cMemoryOwn;
129 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
132 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfEventData obj)
134 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
137 //A Flag to check who called Dispose(). (By User or DisposeQueue)
138 private bool isDisposeQueued = false;
140 /// A Flat to check if it is already disposed.
142 /// <since_tizen> 3 </since_tizen>
143 protected bool disposed = false;
148 /// <since_tizen> 3 </since_tizen>
151 if (!isDisposeQueued)
153 isDisposeQueued = true;
154 DisposeQueue.Instance.Add(this);
159 /// The dispose pattern.
161 /// <since_tizen> 3 </since_tizen>
162 public void Dispose()
164 //Throw excpetion if Dispose() is called in separate thread.
165 if (!Window.IsInstalled())
167 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
172 Dispose(DisposeTypes.Implicit);
176 Dispose(DisposeTypes.Explicit);
177 System.GC.SuppressFinalize(this);
184 /// <since_tizen> 3 </since_tizen>
185 protected virtual void Dispose(DisposeTypes type)
192 if (type == DisposeTypes.Explicit)
195 //Release your own managed resources here.
196 //You should release all of your own disposable objects here.
200 //Release your own unmanaged resources here.
201 //You should not access any managed member here except static instance.
202 //because the execution order of Finalizes is non-deterministic.
204 if (swigCPtr.Handle != IntPtr.Zero)
209 NDalicManualPINVOKE.delete_ImfManager_ImfEventData(swigCPtr);
211 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
217 internal static ImfEventData GetImfEventDataFromPtr(IntPtr cPtr)
219 ImfEventData ret = new ImfEventData(cPtr, false);
220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
225 /// The default constructor.
227 /// <since_tizen> 3 </since_tizen>
228 public ImfEventData() : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_0(), true)
230 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 /// <param name="aEventName">The name of the event from the IMF.</param>
237 /// <param name="aPredictiveString">The pre-edit or the commit string.</param>
238 /// <param name="aCursorOffset">Start the position from the current cursor position to start deleting characters.</param>
239 /// <param name="aNumberOfChars">The number of characters to delete from the cursorOffset.</param>
240 /// <since_tizen> 3 </since_tizen>
241 public ImfEventData(ImfManager.ImfEvent aEventName, string aPredictiveString, int aCursorOffset, int aNumberOfChars) : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_1((int)aEventName, aPredictiveString, aCursorOffset, aNumberOfChars), true)
243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
247 /// The pre-edit or the commit string.
249 /// /// <since_tizen> 3 </since_tizen>
250 [EditorBrowsable(EditorBrowsableState.Never)]
251 public string predictiveString
255 NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
260 string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
267 /// The pre-edit or the commit string.
269 /// <since_tizen> 4 </since_tizen>
270 public string PredictiveString
274 NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
279 string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286 /// The name of the event from the IMF.
288 //Please do not use! this will be deprecated
289 /// <since_tizen> 3 </since_tizen>
290 [EditorBrowsable(EditorBrowsableState.Never)]
291 public ImfManager.ImfEvent eventName
295 NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
296 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
300 ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
307 /// The name of the event from the IMF.
309 /// <since_tizen> 4 </since_tizen>
310 public ImfManager.ImfEvent EventName
314 NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
315 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
319 ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
320 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
326 /// The start position from the current cursor position to start deleting characters.
328 //Please do not use! this will be deprecated
329 /// <since_tizen> 3 </since_tizen>
330 [EditorBrowsable(EditorBrowsableState.Never)]
331 public int cursorOffset
335 NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
336 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
341 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
347 /// The start position from the current cursor position to start deleting characters.
349 /// <since_tizen> 4 </since_tizen>
350 public int CursorOffset
354 NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
360 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
366 /// The number of characters to delete from the cursorOffset.
368 //Please do not use! this will be deprecated
369 /// <since_tizen> 3 </since_tizen>
370 [EditorBrowsable(EditorBrowsableState.Never)]
371 public int numberOfChars
375 NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
376 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
380 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
381 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
387 /// The number of characters to delete from the cursorOffset.
389 /// <since_tizen> 4 </since_tizen>
390 public int NumberOfChars
394 NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
395 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
400 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
408 /// Data required by the IMF from the callback.
410 /// <since_tizen> 3 </since_tizen>
411 public class ImfCallbackData : global::System.IDisposable
413 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
417 /// <since_tizen> 3 </since_tizen>
418 protected bool swigCMemOwn;
420 internal IntPtr GetImfCallbackDataPtr()
422 return (IntPtr)swigCPtr;
425 internal ImfCallbackData(IntPtr cPtr, bool cMemoryOwn)
427 swigCMemOwn = cMemoryOwn;
428 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
431 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfCallbackData obj)
433 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
436 //A Flag to check who called Dispose(). (By User or DisposeQueue)
437 private bool isDisposeQueued = false;
439 /// A Flat to check if it is already disposed.
441 /// <since_tizen> 3 </since_tizen>
442 protected bool disposed = false;
448 /// <since_tizen> 3 </since_tizen>
451 if (!isDisposeQueued)
453 isDisposeQueued = true;
454 DisposeQueue.Instance.Add(this);
459 /// The dispose pattern.
461 /// <since_tizen> 3 </since_tizen>
462 public void Dispose()
464 //Throw excpetion if Dispose() is called in separate thread.
465 if (!Window.IsInstalled())
467 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
472 Dispose(DisposeTypes.Implicit);
476 Dispose(DisposeTypes.Explicit);
477 System.GC.SuppressFinalize(this);
484 /// <since_tizen> 3 </since_tizen>
485 protected virtual void Dispose(DisposeTypes type)
492 if (type == DisposeTypes.Explicit)
495 //Release your own managed resources here.
496 //You should release all of your own disposable objects here.
500 //Release your own unmanaged resources here.
501 //You should not access any managed member here except static instance.
502 //because the execution order of Finalizes is non-deterministic.
504 if (swigCPtr.Handle != IntPtr.Zero)
509 NDalicManualPINVOKE.delete_ImfManager_ImfCallbackData(swigCPtr);
511 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
517 internal static ImfCallbackData GetImfCallbackDataFromPtr(IntPtr cPtr)
519 ImfCallbackData ret = new ImfCallbackData(cPtr, false);
520 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525 /// The default constructor.
527 /// <since_tizen> 3 </since_tizen>
528 public ImfCallbackData() : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_0(), true)
530 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536 /// <param name="aUpdate">True if the cursor position needs to be updated.</param>
537 /// <param name="aCursorPosition">The new position of the cursor.</param>
538 /// <param name="aCurrentText">The current text string.</param>
539 /// <param name="aPreeditResetRequired">Flag if preedit reset is required.</param>
540 /// <since_tizen> 3 </since_tizen>
541 public ImfCallbackData(bool aUpdate, int aCursorPosition, string aCurrentText, bool aPreeditResetRequired) : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_1(aUpdate, aCursorPosition, aCurrentText, aPreeditResetRequired), true)
543 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
547 /// The current text string.
549 //Please do not use! this will be deprecated
550 /// <since_tizen> 3 </since_tizen>
551 [EditorBrowsable(EditorBrowsableState.Never)]
552 public string currentText
556 NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
557 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
561 string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568 /// The current text string.
570 /// <since_tizen> 4 </since_tizen>
571 public string CurrentText
575 NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
576 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587 /// The current text string.
589 //Please do not use! this will be deprecated
590 /// <since_tizen> 3 </since_tizen>
591 [EditorBrowsable(EditorBrowsableState.Never)]
592 public int cursorPosition
596 NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601 int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
602 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608 /// The current text string.
610 /// <since_tizen> 4 </since_tizen>
611 public int CursorPosition
615 NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
616 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
620 int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
621 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627 /// If the cursor position needs to be updated.
629 //Please do not use! this will be deprecated
630 /// <since_tizen> 3 </since_tizen>
631 [EditorBrowsable(EditorBrowsableState.Never)]
636 NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
637 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
641 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
642 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
648 /// If the cursor position needs to be updated.
650 /// <since_tizen> 4 </since_tizen>
655 NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
656 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
661 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667 /// Flags if preedit reset is required.
669 //Please do not use! this will be deprecated
670 /// <since_tizen> 3 </since_tizen>
671 [EditorBrowsable(EditorBrowsableState.Never)]
672 public bool preeditResetRequired
676 NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
677 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
681 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
682 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
688 /// Flags if preedit reset is required.
690 /// <since_tizen> 4 </since_tizen>
691 public bool PreeditResetRequired
695 NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
696 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
700 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
701 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
709 /// Finalize the IMF.<br/>
711 /// <since_tizen> 4 </since_tizen>
712 public void Finalize()
714 NDalicManualPINVOKE.ImfManager_Finalize(swigCPtr);
715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
719 /// Retrieves a handle to the instance of the ImfManager.
721 /// <returns>A handle to the ImfManager.</returns>
722 /// <since_tizen> 3 </since_tizen>
723 public static ImfManager Get()
725 ImfManager ret = new ImfManager(NDalicManualPINVOKE.ImfManager_Get(), true);
726 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
731 /// Activates the IMF.<br/>
732 /// It means that the text editing is started somewhere.<br/>
733 /// If the hardware keyboard isn't connected, then it will show the virtual keyboard.
735 /// <since_tizen> 3 </since_tizen>
736 public void Activate()
738 NDalicManualPINVOKE.ImfManager_Activate(swigCPtr);
739 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
743 /// Deactivates the IMF.<br/>
744 /// It means that the text editing is finished somewhere.
746 /// <since_tizen> 3 </since_tizen>
747 public void Deactivate()
749 NDalicManualPINVOKE.ImfManager_Deactivate(swigCPtr);
750 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
754 /// Gets the restoration status which controls if the keyboard is restored after the focus is lost and then regained.<br/>
755 /// If true, then the keyboard will be restored (activated) after focus is regained.
757 /// <returns>The restoration status.</returns>
758 /// <since_tizen> 3 </since_tizen>
759 public bool RestoreAfterFocusLost()
761 bool ret = NDalicManualPINVOKE.ImfManager_RestoreAfterFocusLost(swigCPtr);
762 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
767 /// Sets the status whether the IMF has to restore the keyboard after losing focus.
769 /// <param name="toggle">True means that keyboard should be restored after the focus is lost and regained.</param>
770 /// <since_tizen> 3 </since_tizen>
771 public void SetRestoreAfterFocusLost(bool toggle)
773 NDalicManualPINVOKE.ImfManager_SetRestoreAfterFocusLost(swigCPtr, toggle);
774 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
778 /// Sends a message reset to the preedit state or the IMF module.
780 /// <since_tizen> 3 </since_tizen>
781 public new void Reset()
783 NDalicManualPINVOKE.ImfManager_Reset(swigCPtr);
784 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
788 /// Notifies the IMF context that the cursor position has changed, required for features like auto-capitalization.
790 /// <since_tizen> 3 </since_tizen>
791 public void NotifyCursorPosition()
793 NDalicManualPINVOKE.ImfManager_NotifyCursorPosition(swigCPtr);
794 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
798 /// Sets the cursor position stored in VirtualKeyboard, this is required by the IMF context.
800 /// <param name="cursorPosition">The position of the cursor.</param>
801 /// <since_tizen> 3 </since_tizen>
802 public void SetCursorPosition(uint cursorPosition)
804 NDalicManualPINVOKE.ImfManager_SetCursorPosition(swigCPtr, cursorPosition);
805 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
809 /// Gets the cursor position stored in VirtualKeyboard, this is required by the IMF context.
811 /// <returns>The current position of the cursor.</returns>
812 /// <since_tizen> 3 </since_tizen>
813 public uint GetCursorPosition()
815 uint ret = NDalicManualPINVOKE.ImfManager_GetCursorPosition(swigCPtr);
816 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
821 /// A method to store the string required by the IMF, this is used to provide predictive word suggestions.
823 /// <param name="text">The text string surrounding the current cursor point.</param>
824 /// <since_tizen> 3 </since_tizen>
825 public void SetSurroundingText(string text)
827 NDalicManualPINVOKE.ImfManager_SetSurroundingText(swigCPtr, text);
828 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
832 /// Gets the current text string set within the IMF manager, this is used to offer predictive suggestions.
834 /// <returns>The surrounding text.</returns>
835 /// <since_tizen> 3 </since_tizen>
836 public string GetSurroundingText()
838 string ret = NDalicManualPINVOKE.ImfManager_GetSurroundingText(swigCPtr);
839 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
844 /// Notifies the IMF context that text input is set to multiline or not.
846 /// <param name="multiLine">True if multiline text input is used.</param>
847 /// <since_tizen> 3 </since_tizen>
848 public void NotifyTextInputMultiLine(bool multiLine)
850 NDalicManualPINVOKE.ImfManager_NotifyTextInputMultiLine(swigCPtr, multiLine);
851 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
855 /// Returns the text direction of the keyboard's current input language.
857 /// <returns>The direction of the text.</returns>
858 /// <since_tizen> 3 </since_tizen>
859 public ImfManager.TextDirection GetTextDirection()
861 ImfManager.TextDirection ret = (ImfManager.TextDirection)NDalicManualPINVOKE.ImfManager_GetTextDirection(swigCPtr);
862 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
867 /// Provides the size and the position of the keyboard.<br/>
868 /// The position is relative to whether the keyboard is visible or not.<br/>
869 /// If the keyboard is not visible, then the position will be off the screen.<br/>
870 /// If the keyboard is not being shown when this method is called, the keyboard is partially setup (IMFContext) to get/>
871 /// the values then taken down. So ideally, GetInputMethodArea() should be called after Show().
873 /// <returns>Rectangle which is keyboard panel x, y, width, height.</returns>
874 /// <since_tizen> 3 </since_tizen>
875 public Rectangle GetInputMethodArea()
877 Rectangle ret = new Rectangle(NDalicManualPINVOKE.ImfManager_GetInputMethodArea(swigCPtr), true);
878 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
882 internal void ApplyOptions(InputMethodOptions options)
884 NDalicManualPINVOKE.ImfManager_ApplyOptions(swigCPtr, InputMethodOptions.getCPtr(options));
885 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
889 /// Sets up the input-panel specific data.
891 /// <param name="text">The specific data to be set to the input panel.</param>
892 /// <since_tizen> 3 </since_tizen>
893 public void SetInputPanelUserData(string text)
895 NDalicManualPINVOKE.ImfManager_SetInputPanelUserData(swigCPtr, text);
896 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
900 /// Gets the specific data of the current active input panel.
902 /// <param name="text">The specific data to be received from the input panel.</param>
903 /// <since_tizen> 4 </since_tizen>
904 public void GetInputPanelUserData(out string text)
906 NDalicManualPINVOKE.ImfManager_GetInputPanelUserData(swigCPtr, out text);
907 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
911 /// Gets the state of the current active input panel.
913 /// <returns>The state of the input panel.</returns>
914 /// <since_tizen> 3 </since_tizen>
915 public ImfManager.State GetInputPanelState()
917 ImfManager.State ret = (ImfManager.State)NDalicManualPINVOKE.ImfManager_GetInputPanelState(swigCPtr);
918 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
923 /// Sets the return key on the input panel to be visible or invisible.<br/>
924 /// The default is true.
926 /// <param name="visible">True if the return key is visible (enabled), false otherwise.</param>
927 /// <since_tizen> 3 </since_tizen>
928 public void SetReturnKeyState(bool visible)
930 NDalicManualPINVOKE.ImfManager_SetReturnKeyState(swigCPtr, visible);
931 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
935 /// Enables to show the input panel automatically when focused.
937 /// <param name="enabled">If true, the input panel will be shown when focused.</param>
938 /// <since_tizen> 3 </since_tizen>
939 public void AutoEnableInputPanel(bool enabled)
941 NDalicManualPINVOKE.ImfManager_AutoEnableInputPanel(swigCPtr, enabled);
942 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
946 /// Shows the input panel.
948 /// <since_tizen> 3 </since_tizen>
949 public void ShowInputPanel()
951 NDalicManualPINVOKE.ImfManager_ShowInputPanel(swigCPtr);
952 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
956 /// Hides the input panel.
958 /// <since_tizen> 3 </since_tizen>
959 public void HideInputPanel()
961 NDalicManualPINVOKE.ImfManager_HideInputPanel(swigCPtr);
962 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
966 /// Gets the keyboard type.<br/>
967 /// The default keyboard type is SoftwareKeyboard.
969 /// <returns>The keyboard type.</returns>
970 /// <since_tizen> 4 </since_tizen>
971 public ImfManager.KeyboardType GetKeyboardType()
973 ImfManager.KeyboardType ret = (ImfManager.KeyboardType)NDalicManualPINVOKE.ImfManager_GetKeyboardType(swigCPtr);
974 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
979 /// Gets the current language locale of the input panel.<br/>
980 /// For example, en_US, en_GB, en_PH, fr_FR, ...
982 /// <returns>The current language locale of the input panel.</returns>
983 /// <since_tizen> 4 </since_tizen>
984 public string GetInputPanelLocale()
986 string ret = NDalicManualPINVOKE.ImfManager_GetInputPanelLocale(swigCPtr);
987 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
994 /// <since_tizen> 3 </since_tizen>
995 public ImfManager() : this(NDalicManualPINVOKE.new_ImfManager(), true)
997 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1001 /// ImfManager activated event arguments.
1003 //Please do not use! this will be deprecated
1004 /// <since_tizen> 3 </since_tizen>
1005 [EditorBrowsable(EditorBrowsableState.Never)]
1006 public class ImfManagerActivatedEventArgs : EventArgs
1011 /// <since_tizen> 3 </since_tizen>
1012 public ImfManager ImfManager
1019 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1020 private delegate void ImfManagerActivatedEventCallbackType(global::System.IntPtr data);
1021 private ImfManagerActivatedEventCallbackType _imfManagerActivatedEventCallback;
1022 private event EventHandler<ImfManagerActivatedEventArgs> _imfManagerActivatedEventHandler;
1025 /// ImfManager activated event.
1027 //Please do not use! this will be deprecated
1028 /// <since_tizen> 3 </since_tizen>
1029 [EditorBrowsable(EditorBrowsableState.Never)]
1030 public event EventHandler<ImfManagerActivatedEventArgs> ImfManagerActivated
1034 if (_imfManagerActivatedEventHandler == null)
1036 _imfManagerActivatedEventCallback = OnImfManagerActivated;
1037 ActivatedSignal().Connect(_imfManagerActivatedEventCallback);
1040 _imfManagerActivatedEventHandler += value;
1044 _imfManagerActivatedEventHandler -= value;
1046 if (_imfManagerActivatedEventHandler == null && _imfManagerActivatedEventCallback != null)
1048 ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
1053 private void OnImfManagerActivated(global::System.IntPtr data)
1055 ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs();
1059 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1062 if (_imfManagerActivatedEventHandler != null)
1064 _imfManagerActivatedEventHandler(this, e);
1069 /// ImfManager activated event arguments.
1071 /// <since_tizen> 4 </since_tizen>
1072 public class ActivatedEventArgs : EventArgs
1077 /// <since_tizen> 4 </since_tizen>
1078 public ImfManager ImfManager
1085 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1086 private delegate void ActivatedEventCallbackType(IntPtr data);
1087 private ActivatedEventCallbackType _activatedEventCallback;
1088 private event EventHandler<ActivatedEventArgs> _activatedEventHandler;
1091 /// ImfManager activated.
1093 /// <since_tizen> 4 </since_tizen>
1094 public event EventHandler<ActivatedEventArgs> Activated
1098 if (_activatedEventHandler == null)
1100 _activatedEventCallback = OnActivated;
1101 ActivatedSignal().Connect(_activatedEventCallback);
1104 _activatedEventHandler += value;
1108 _activatedEventHandler -= value;
1110 if (_activatedEventHandler == null && _activatedEventCallback != null)
1112 ActivatedSignal().Disconnect(_activatedEventCallback);
1117 private void OnActivated(IntPtr data)
1119 ActivatedEventArgs e = new ActivatedEventArgs();
1123 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1126 if (_activatedEventHandler != null)
1128 _activatedEventHandler(this, e);
1133 /// ImfManager activated signal.
1135 //Please do not use! this will be internal
1136 /// <since_tizen> 3 </since_tizen>
1137 [EditorBrowsable(EditorBrowsableState.Never)]
1138 public ActivatedSignalType ActivatedSignal()
1140 ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
1141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1146 /// ImfManager event received event arguments.
1148 //Please do not use! this will be deprecated
1149 /// <since_tizen> 3 </since_tizen>
1150 [EditorBrowsable(EditorBrowsableState.Never)]
1151 public class ImfManagerEventReceivedEventArgs : EventArgs
1156 /// <since_tizen> 3 </since_tizen>
1157 public ImfManager ImfManager
1164 private delegate void ImfManagerEventReceivedEventCallbackType(global::System.IntPtr data);
1165 private ImfManagerEventReceivedEventCallbackType _imfManagerEventReceivedEventCallback;
1166 private event EventHandler<ImfManagerEventReceivedEventArgs> _imfManagerEventReceivedEventHandler;
1169 /// ImfManager event received.
1171 //Please do not use! this will be deprecated
1172 /// <since_tizen> 3 </since_tizen>
1173 [EditorBrowsable(EditorBrowsableState.Never)]
1174 public event EventHandler<ImfManagerEventReceivedEventArgs> ImfManagerEventReceived
1178 if (_imfManagerEventReceivedEventHandler == null)
1180 _imfManagerEventReceivedEventCallback = OnImfManagerEventReceived;
1181 EventReceivedSignal().Connect(_imfManagerEventReceivedEventCallback);
1184 _imfManagerEventReceivedEventHandler += value;
1188 _imfManagerEventReceivedEventHandler -= value;
1190 if (_imfManagerEventReceivedEventHandler == null && _imfManagerEventReceivedEventCallback != null)
1192 EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
1197 private void OnImfManagerEventReceived(global::System.IntPtr data)
1199 ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs();
1203 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1206 if (_imfManagerEventReceivedEventHandler != null)
1208 _imfManagerEventReceivedEventHandler(this, e);
1213 /// ImfManager event received event arguments.
1215 /// <since_tizen> 4 </since_tizen>
1216 public class EventReceivedEventArgs : EventArgs
1221 /// <since_tizen> 4 </since_tizen>
1222 public ImfManager ImfManager
1231 /// <since_tizen> 4 </since_tizen>
1232 public ImfEventData ImfEventData
1239 private delegate IntPtr EventReceivedEventCallbackType(IntPtr imfManager, IntPtr imfEventData);
1240 private EventReceivedEventCallbackType _eventReceivedEventCallback;
1241 private event EventHandlerWithReturnType<object, EventReceivedEventArgs, ImfCallbackData> _eventReceivedEventHandler;
1244 /// ImfManager event received.
1246 /// <since_tizen> 4 </since_tizen>
1247 public event EventHandlerWithReturnType<object, EventReceivedEventArgs, ImfCallbackData> EventReceived
1251 if (_eventReceivedEventHandler == null)
1253 _eventReceivedEventCallback = OnEventReceived;
1254 EventReceivedSignal().Connect(_eventReceivedEventCallback);
1257 _eventReceivedEventHandler += value;
1261 _eventReceivedEventHandler -= value;
1263 if (_eventReceivedEventHandler == null && _eventReceivedEventCallback != null)
1265 EventReceivedSignal().Disconnect(_eventReceivedEventCallback);
1270 private IntPtr OnEventReceived(IntPtr imfManager, IntPtr imfEventData)
1272 ImfCallbackData imfCallbackData = null;
1274 EventReceivedEventArgs e = new EventReceivedEventArgs();
1276 if (imfManager != null)
1278 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(imfManager) as ImfManager;
1280 if (imfEventData != null)
1282 e.ImfEventData = ImfEventData.GetImfEventDataFromPtr(imfEventData);
1285 if (_eventReceivedEventHandler != null)
1287 imfCallbackData = _eventReceivedEventHandler(this, e);
1289 if (imfCallbackData != null)
1291 return imfCallbackData.GetImfCallbackDataPtr();
1295 return new ImfCallbackData().GetImfCallbackDataPtr();
1300 /// ImfManager event received signal.
1302 //Please do not use! this will be internal
1303 /// <since_tizen> 3 </since_tizen>
1304 [EditorBrowsable(EditorBrowsableState.Never)]
1305 public ImfEventSignalType EventReceivedSignal()
1307 ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
1308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1313 /// ImfManager status changed event arguments.
1315 //Please do not use! this will be deprecated
1316 /// <since_tizen> 3 </since_tizen>
1317 [EditorBrowsable(EditorBrowsableState.Never)]
1318 public class ImfManagerStatusChangedEventArgs : EventArgs
1323 /// <since_tizen> 3 </since_tizen>
1324 public ImfManager ImfManager
1331 private delegate void ImfManagerStatusChangedEventCallbackType(global::System.IntPtr data);
1332 private ImfManagerStatusChangedEventCallbackType _imfManagerStatusChangedEventCallback;
1333 private event EventHandler<ImfManagerStatusChangedEventArgs> _imfManagerStatusChangedEventHandler;
1336 /// ImfManager status changed.
1338 //Please do not use! this will be deprecated
1339 /// <since_tizen> 3 </since_tizen>
1340 [EditorBrowsable(EditorBrowsableState.Never)]
1341 public event EventHandler<ImfManagerStatusChangedEventArgs> ImfManagerStatusChanged
1345 if (_imfManagerStatusChangedEventHandler == null)
1347 _imfManagerStatusChangedEventCallback = OnImfManagerStatusChanged;
1348 StatusChangedSignal().Connect(_imfManagerStatusChangedEventCallback);
1351 _imfManagerStatusChangedEventHandler += value;
1355 _imfManagerStatusChangedEventHandler -= value;
1357 if (_imfManagerStatusChangedEventHandler == null && _imfManagerStatusChangedEventCallback != null)
1359 StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
1364 private void OnImfManagerStatusChanged(global::System.IntPtr data)
1366 ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs();
1370 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1373 if (_imfManagerStatusChangedEventHandler != null)
1375 _imfManagerStatusChangedEventHandler(this, e);
1380 /// ImfManager status changed event arguments.
1382 /// <since_tizen> 4 </since_tizen>
1383 public class StatusChangedEventArgs : EventArgs
1386 /// ImfManager status
1388 /// <since_tizen> 4 </since_tizen>
1389 public bool StatusChanged
1396 private delegate void StatusChangedEventCallbackType(bool statusChanged);
1397 private StatusChangedEventCallbackType _statusChangedEventCallback;
1398 private event EventHandler<StatusChangedEventArgs> _statusChangedEventHandler;
1401 /// ImfManager status changed.
1403 /// <since_tizen> 4 </since_tizen>
1404 public event EventHandler<StatusChangedEventArgs> StatusChanged
1408 if (_statusChangedEventHandler == null)
1410 _statusChangedEventCallback = OnStatusChanged;
1411 StatusChangedSignal().Connect(_statusChangedEventCallback);
1414 _statusChangedEventHandler += value;
1418 _statusChangedEventHandler -= value;
1420 if (_statusChangedEventHandler == null && _statusChangedEventCallback != null)
1422 StatusChangedSignal().Disconnect(_statusChangedEventCallback);
1427 private void OnStatusChanged(bool statusChanged)
1429 StatusChangedEventArgs e = new StatusChangedEventArgs();
1431 e.StatusChanged = statusChanged;
1433 if (_statusChangedEventHandler != null)
1435 _statusChangedEventHandler(this, e);
1440 /// ImfManager status changed signal.
1442 //Please do not use! this will be internal
1443 /// <since_tizen> 3 </since_tizen>
1444 [EditorBrowsable(EditorBrowsableState.Never)]
1445 public StatusSignalType StatusChangedSignal()
1447 StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
1448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1453 /// ImfManager resized event arguments.
1455 //Please do not use! this will be deprecated
1456 /// <since_tizen> 3 </since_tizen>
1457 [EditorBrowsable(EditorBrowsableState.Never)]
1458 public class ImfManagerResizedEventArgs : EventArgs
1463 /// <since_tizen> 3 </since_tizen>
1464 public ImfManager ImfManager
1471 private delegate void ImfManagerResizedEventCallbackType(IntPtr data);
1472 private ImfManagerResizedEventCallbackType _imfManagerResizedEventCallback;
1473 private event EventHandler<ImfManagerResizedEventArgs> _imfManagerResizedEventHandler;
1476 /// ImfManager resized event.
1478 //Please do not use! this will be deprecated
1479 /// <since_tizen> 3 </since_tizen>
1480 [EditorBrowsable(EditorBrowsableState.Never)]
1481 public event EventHandler<ImfManagerResizedEventArgs> ImfManagerResized
1485 if (_imfManagerResizedEventHandler == null)
1487 _imfManagerResizedEventCallback = OnImfManagerResized;
1488 ResizedSignal().Connect(_imfManagerResizedEventCallback);
1491 _imfManagerResizedEventHandler += value;
1495 _imfManagerResizedEventHandler -= value;
1497 if (_imfManagerResizedEventHandler == null && _imfManagerResizedEventCallback != null)
1499 ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
1504 private void OnImfManagerResized(IntPtr data)
1506 ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs();
1510 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1513 if (_imfManagerResizedEventHandler != null)
1515 _imfManagerResizedEventHandler(this, e);
1520 /// ImfManager resized event.
1522 /// <since_tizen> 4 </since_tizen>
1523 public class ResizedEventArgs : EventArgs
1528 /// <since_tizen> 4 </since_tizen>
1536 private delegate void ResizedEventCallbackType(int resized);
1537 private ResizedEventCallbackType _resizedEventCallback;
1538 private event EventHandler<ResizedEventArgs> _resizedEventHandler;
1541 /// ImfManager resized.
1543 /// <since_tizen> 4 </since_tizen>
1544 public event EventHandler<ResizedEventArgs> Resized
1548 if (_resizedEventHandler == null)
1550 _resizedEventCallback = OnResized;
1551 ResizedSignal().Connect(_resizedEventCallback);
1554 _resizedEventHandler += value;
1558 _resizedEventHandler -= value;
1560 if (_resizedEventHandler == null && _resizedEventCallback != null)
1562 ResizedSignal().Disconnect(_resizedEventCallback);
1567 private void OnResized(int resized)
1569 ResizedEventArgs e = new ResizedEventArgs();
1570 e.Resized = resized;
1572 if (_resizedEventHandler != null)
1574 _resizedEventHandler(this, e);
1579 /// ImfManager resized signal.
1581 //Please do not use! this will be internal
1582 /// <since_tizen> 3 </since_tizen>
1583 [EditorBrowsable(EditorBrowsableState.Never)]
1584 public KeyboardResizedSignalType ResizedSignal()
1586 KeyboardResizedSignalType ret = new KeyboardResizedSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
1587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1592 /// ImfManager language changed event arguments.
1594 //Please do not use! this will be deprecated
1595 /// <since_tizen> 3 </since_tizen>
1596 [EditorBrowsable(EditorBrowsableState.Never)]
1597 public class ImfManagerLanguageChangedEventArgs : EventArgs
1602 /// <since_tizen> 3 </since_tizen>
1603 public ImfManager ImfManager
1610 private delegate void ImfManagerLanguageChangedEventCallbackType(IntPtr data);
1611 private ImfManagerLanguageChangedEventCallbackType _imfManagerLanguageChangedEventCallback;
1612 private event EventHandler<ImfManagerLanguageChangedEventArgs> _imfManagerLanguageChangedEventHandler;
1615 /// ImfManager language changed event.
1617 //Please do not use! this will be deprecated
1618 /// <since_tizen> 3 </since_tizen>
1619 [EditorBrowsable(EditorBrowsableState.Never)]
1620 public event EventHandler<ImfManagerLanguageChangedEventArgs> ImfManagerLanguageChanged
1624 if (_imfManagerLanguageChangedEventHandler == null)
1626 _imfManagerLanguageChangedEventCallback = OnImfManagerLanguageChanged;
1627 LanguageChangedSignal().Connect(_imfManagerLanguageChangedEventCallback);
1630 _imfManagerLanguageChangedEventHandler += value;
1634 _imfManagerLanguageChangedEventHandler -= value;
1636 if (_imfManagerLanguageChangedEventHandler == null && _imfManagerLanguageChangedEventCallback != null)
1638 LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
1643 private void OnImfManagerLanguageChanged(IntPtr data)
1645 ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs();
1649 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1652 if (_imfManagerLanguageChangedEventHandler != null)
1654 _imfManagerLanguageChangedEventHandler(this, e);
1659 /// ImfManager language changed event args.
1661 /// <since_tizen> 4 </since_tizen>
1662 public class LanguageChangedEventArgs : EventArgs
1665 /// language changed.
1667 /// <since_tizen> 4 </since_tizen>
1668 public int LanguageChanged
1675 private delegate void LanguageChangedEventCallbackType(int languageChanged);
1676 private LanguageChangedEventCallbackType _languageChangedEventCallback;
1677 private event EventHandler<LanguageChangedEventArgs> _languageChangedEventHandler;
1680 /// ImfManager language changed.
1682 /// <since_tizen> 4 </since_tizen>
1683 public event EventHandler<LanguageChangedEventArgs> LanguageChanged
1687 if (_languageChangedEventHandler == null)
1689 _languageChangedEventCallback = OnLanguageChanged;
1690 LanguageChangedSignal().Connect(_languageChangedEventCallback);
1693 _languageChangedEventHandler += value;
1697 _languageChangedEventHandler -= value;
1699 if (_languageChangedEventHandler == null && _languageChangedEventCallback != null)
1701 LanguageChangedSignal().Disconnect(_languageChangedEventCallback);
1706 private void OnLanguageChanged(int languageChanged)
1708 LanguageChangedEventArgs e = new LanguageChangedEventArgs();
1709 e.LanguageChanged = languageChanged;
1711 if (_languageChangedEventHandler != null)
1713 _languageChangedEventHandler(this, e);
1718 /// ImfManager language changed signal.
1720 //Please do not use! this will be internal
1721 /// <since_tizen> 3 </since_tizen>
1722 [EditorBrowsable(EditorBrowsableState.Never)]
1723 public LanguageChangedSignalType LanguageChangedSignal()
1725 LanguageChangedSignalType ret = new LanguageChangedSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
1726 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1731 /// ImfManager keyboard type changed event arguments.
1733 /// <since_tizen> 4 </since_tizen>
1734 public class KeyboardTypeChangedEventArgs : EventArgs
1737 /// ImfManager keyboard type
1739 /// <since_tizen> 4 </since_tizen>
1740 public KeyboardType KeyboardType
1747 private delegate void KeyboardTypeChangedEventCallbackType(KeyboardType type);
1748 private KeyboardTypeChangedEventCallbackType _keyboardTypeChangedEventCallback;
1749 private event EventHandler<KeyboardTypeChangedEventArgs> _keyboardTypeChangedEventHandler;
1752 /// ImfManager keyboard type changed.
1754 /// <since_tizen> 4 </since_tizen>
1755 public event EventHandler<KeyboardTypeChangedEventArgs> KeyboardTypeChanged
1759 if (_keyboardTypeChangedEventHandler == null)
1761 _keyboardTypeChangedEventCallback = OnKeyboardTypeChanged;
1762 KeyboardTypeChangedSignal().Connect(_keyboardTypeChangedEventCallback);
1765 _keyboardTypeChangedEventHandler += value;
1769 _keyboardTypeChangedEventHandler -= value;
1771 if (_keyboardTypeChangedEventHandler == null && _keyboardTypeChangedEventCallback != null)
1773 KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback);
1778 private void OnKeyboardTypeChanged(KeyboardType type)
1780 KeyboardTypeChangedEventArgs e = new KeyboardTypeChangedEventArgs();
1782 e.KeyboardType = type;
1784 if (_keyboardTypeChangedEventHandler != null)
1786 _keyboardTypeChangedEventHandler(this, e);
1790 internal KeyboardTypeSignalType KeyboardTypeChangedSignal()
1792 KeyboardTypeSignalType ret = new KeyboardTypeSignalType(NDalicManualPINVOKE.ImfManager_KeyboardTypeChangedSignal(swigCPtr), false);
1793 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1798 /// The direction of the text.
1800 /// <since_tizen> 3 </since_tizen>
1801 public enum TextDirection
1814 /// Events that are generated by the IMF.
1816 /// <since_tizen> 3 </since_tizen>
1817 public enum ImfEvent
1822 /// <since_tizen> 4 </since_tizen>
1825 /// Pre-Edit changed.
1827 /// <since_tizen> 4 </since_tizen>
1830 /// Commit received.
1832 /// <since_tizen> 4 </since_tizen>
1835 /// An event to delete a range of characters from the string.
1837 /// <since_tizen> 4 </since_tizen>
1840 /// An event to query string and the cursor position.
1842 /// <since_tizen> 4 </since_tizen>
1845 /// Private command sent from the input panel.
1847 /// <since_tizen> 4 </since_tizen>
1852 /// Enumeration for the state of the input panel.
1854 /// <since_tizen> 3 </since_tizen>
1860 /// <since_tizen> 4 </since_tizen>
1863 /// Input panel is shown.
1865 /// <since_tizen> 4 </since_tizen>
1868 /// Input panel is hidden.
1870 /// <since_tizen> 4 </since_tizen>
1873 /// Input panel in process of being shown.
1875 /// <since_tizen> 4 </since_tizen>
1880 /// Enumeration for the types of keyboard.
1882 /// <since_tizen> 4 </since_tizen>
1883 public enum KeyboardType
1886 /// Software keyboard (virtual keyboard) is default.
1888 /// <since_tizen> 4 </since_tizen>
1891 /// Hardware keyboard.
1893 /// <since_tizen> 4 </since_tizen>