1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
20 using System.Runtime.InteropServices;
23 public class ImfManager : BaseHandle
25 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
27 internal ImfManager(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ImfManager_SWIGUpcast(cPtr), cMemoryOwn)
29 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
32 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfManager obj)
34 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
37 protected override void Dispose(DisposeTypes type)
44 if (type == DisposeTypes.Explicit)
47 //Release your own managed resources here.
48 //You should release all of your own disposable objects here.
52 //Release your own unmanaged resources here.
53 //You should not access any managed member here except static instance.
54 //because the execution order of Finalizes is non-deterministic.
56 if (swigCPtr.Handle != global::System.IntPtr.Zero)
62 //Unreference this instance from Registry.
63 Registry.Unregister(this);
65 NDalicManualPINVOKE.delete_ImfManager(swigCPtr);
67 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
73 public class ImfEventData : global::System.IDisposable
75 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
76 protected bool swigCMemOwn;
78 internal ImfEventData(global::System.IntPtr cPtr, bool cMemoryOwn)
80 swigCMemOwn = cMemoryOwn;
81 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
84 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfEventData obj)
86 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
89 //A Flag to check who called Dispose(). (By User or DisposeQueue)
90 private bool isDisposeQueued = false;
91 //A Flat to check if it is already disposed.
92 protected bool disposed = false;
99 isDisposeQueued = true;
100 DisposeQueue.Instance.Add(this);
104 public void Dispose()
106 //Throw excpetion if Dispose() is called in separate thread.
107 if (!Window.IsInstalled())
109 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
114 Dispose(DisposeTypes.Implicit);
118 Dispose(DisposeTypes.Explicit);
119 System.GC.SuppressFinalize(this);
123 protected virtual void Dispose(DisposeTypes type)
130 if (type == DisposeTypes.Explicit)
133 //Release your own managed resources here.
134 //You should release all of your own disposable objects here.
138 //Release your own unmanaged resources here.
139 //You should not access any managed member here except static instance.
140 //because the execution order of Finalizes is non-deterministic.
142 if (swigCPtr.Handle != global::System.IntPtr.Zero)
147 NDalicManualPINVOKE.delete_ImfManager_ImfEventData(swigCPtr);
149 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
155 public ImfEventData() : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_0(), true)
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160 public ImfEventData(ImfManager.ImfEvent aEventName, string aPredictiveString, int aCursorOffset, int aNumberOfChars) : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_1((int)aEventName, aPredictiveString, aCursorOffset, aNumberOfChars), true)
162 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
165 public string predictiveString
169 NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
170 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174 string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
175 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180 public ImfManager.ImfEvent eventName
184 NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189 ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
190 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
195 public int cursorOffset
199 NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210 public int numberOfChars
214 NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
215 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
219 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227 public class ImfCallbackData : global::System.IDisposable
229 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
230 protected bool swigCMemOwn;
232 internal ImfCallbackData(global::System.IntPtr cPtr, bool cMemoryOwn)
234 swigCMemOwn = cMemoryOwn;
235 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
238 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfCallbackData obj)
240 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
243 //A Flag to check who called Dispose(). (By User or DisposeQueue)
244 private bool isDisposeQueued = false;
245 //A Flat to check if it is already disposed.
246 protected bool disposed = false;
251 if (!isDisposeQueued)
253 isDisposeQueued = true;
254 DisposeQueue.Instance.Add(this);
258 public void Dispose()
260 //Throw excpetion if Dispose() is called in separate thread.
261 if (!Window.IsInstalled())
263 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
268 Dispose(DisposeTypes.Implicit);
272 Dispose(DisposeTypes.Explicit);
273 System.GC.SuppressFinalize(this);
277 protected virtual void Dispose(DisposeTypes type)
284 if (type == DisposeTypes.Explicit)
287 //Release your own managed resources here.
288 //You should release all of your own disposable objects here.
292 //Release your own unmanaged resources here.
293 //You should not access any managed member here except static instance.
294 //because the execution order of Finalizes is non-deterministic.
296 if (swigCPtr.Handle != global::System.IntPtr.Zero)
301 NDalicManualPINVOKE.delete_ImfManager_ImfCallbackData(swigCPtr);
303 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
309 public ImfCallbackData() : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_0(), true)
311 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
314 public ImfCallbackData(bool aUpdate, int aCursorPosition, string aCurrentText, bool aPreeditResetRequired) : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_1(aUpdate, aCursorPosition, aCurrentText, aPreeditResetRequired), true)
316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
319 public string currentText
323 NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
324 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328 string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
329 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
334 public int cursorPosition
338 NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
339 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
343 int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
344 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
354 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
359 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
364 public bool preeditResetRequired
368 NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
369 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
373 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
374 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381 public static ImfManager Get()
383 ImfManager ret = new ImfManager(NDalicManualPINVOKE.ImfManager_Get(), true);
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 public void Activate()
390 NDalicManualPINVOKE.ImfManager_Activate(swigCPtr);
391 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
394 public void Deactivate()
396 NDalicManualPINVOKE.ImfManager_Deactivate(swigCPtr);
397 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400 public bool RestoreAfterFocusLost()
402 bool ret = NDalicManualPINVOKE.ImfManager_RestoreAfterFocusLost(swigCPtr);
403 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 public void SetRestoreAfterFocusLost(bool toggle)
409 NDalicManualPINVOKE.ImfManager_SetRestoreAfterFocusLost(swigCPtr, toggle);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
413 public new void Reset()
415 NDalicManualPINVOKE.ImfManager_Reset(swigCPtr);
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419 public void NotifyCursorPosition()
421 NDalicManualPINVOKE.ImfManager_NotifyCursorPosition(swigCPtr);
422 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
425 public void SetCursorPosition(uint cursorPosition)
427 NDalicManualPINVOKE.ImfManager_SetCursorPosition(swigCPtr, cursorPosition);
428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
431 public uint GetCursorPosition()
433 uint ret = NDalicManualPINVOKE.ImfManager_GetCursorPosition(swigCPtr);
434 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438 public void SetSurroundingText(string text)
440 NDalicManualPINVOKE.ImfManager_SetSurroundingText(swigCPtr, text);
441 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 public string GetSurroundingText()
446 string ret = NDalicManualPINVOKE.ImfManager_GetSurroundingText(swigCPtr);
447 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 public void NotifyTextInputMultiLine(bool multiLine)
453 NDalicManualPINVOKE.ImfManager_NotifyTextInputMultiLine(swigCPtr, multiLine);
454 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 public ImfManager.TextDirection GetTextDirection()
459 ImfManager.TextDirection ret = (ImfManager.TextDirection)NDalicManualPINVOKE.ImfManager_GetTextDirection(swigCPtr);
460 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464 public Rectangle GetInputMethodArea()
466 Rectangle ret = new Rectangle(NDalicManualPINVOKE.ImfManager_GetInputMethodArea(swigCPtr), true);
467 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
471 internal void ApplyOptions(SWIGTYPE_p_InputMethodOptions options)
473 NDalicManualPINVOKE.ImfManager_ApplyOptions(swigCPtr, SWIGTYPE_p_InputMethodOptions.getCPtr(options));
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 public void SetInputPanelUserData(string text)
479 NDalicManualPINVOKE.ImfManager_SetInputPanelUserData(swigCPtr, text);
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483 public void GetInputPanelUserData(string text)
485 NDalicManualPINVOKE.ImfManager_GetInputPanelUserData(swigCPtr, text);
486 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 public ImfManager.State GetInputPanelState()
491 ImfManager.State ret = (ImfManager.State)NDalicManualPINVOKE.ImfManager_GetInputPanelState(swigCPtr);
492 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
496 public void SetReturnKeyState(bool visible)
498 NDalicManualPINVOKE.ImfManager_SetReturnKeyState(swigCPtr, visible);
499 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
502 public void AutoEnableInputPanel(bool enabled)
504 NDalicManualPINVOKE.ImfManager_AutoEnableInputPanel(swigCPtr, enabled);
505 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
508 public void ShowInputPanel()
510 NDalicManualPINVOKE.ImfManager_ShowInputPanel(swigCPtr);
511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514 public void HideInputPanel()
516 NDalicManualPINVOKE.ImfManager_HideInputPanel(swigCPtr);
517 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
521 public SWIGTYPE_p_Dali__SignalT_void_fDali__ImfManager_RF_t ActivatedSignal()
523 SWIGTYPE_p_Dali__SignalT_void_fDali__ImfManager_RF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__ImfManager_RF_t(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
524 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
528 public SWIGTYPE_p_Dali__SignalT_Dali__ImfManager__ImfCallbackData_fDali__ImfManager_R_Dali__ImfManager__ImfEventData_const_RF_t EventReceivedSignal()
530 SWIGTYPE_p_Dali__SignalT_Dali__ImfManager__ImfCallbackData_fDali__ImfManager_R_Dali__ImfManager__ImfEventData_const_RF_t ret = new SWIGTYPE_p_Dali__SignalT_Dali__ImfManager__ImfCallbackData_fDali__ImfManager_R_Dali__ImfManager__ImfEventData_const_RF_t(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
531 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
535 public WindowFocusSignalType StatusChangedSignal()
537 WindowFocusSignalType ret = new WindowFocusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
538 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
542 public VoidSignal ResizedSignal()
544 VoidSignal ret = new VoidSignal(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
545 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549 public VoidSignal LanguageChangedSignal()
551 VoidSignal ret = new VoidSignal(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
552 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
557 public ImfManager() : this(NDalicManualPINVOKE.new_ImfManager__SWIG_0(), true)
559 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
562 internal ImfManager(SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager imfManager) : this(NDalicManualPINVOKE.new_ImfManager__SWIG_1(SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager.getCPtr(imfManager)), true)
564 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
567 public enum TextDirection
593 ///////////////////////////////////////////////////////////////////////////////
594 internal static ImfManager GetImfManagerFromPtr(global::System.IntPtr cPtr)
596 ImfManager ret = new ImfManager(cPtr, false);
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601 public class ImfManagerActivatedEventArgs : EventArgs
603 public ImfManager ImfManager
610 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
611 private delegate void ImfManagerActivatedEventCallbackType(global::System.IntPtr data);
612 private ImfManagerActivatedEventCallbackType _imfManagerActivatedEventCallback;
614 private event EventHandler<ImfManagerActivatedEventArgs> _imfManagerActivatedEventHandler;
616 public event EventHandler<ImfManagerActivatedEventArgs> ImfManagerActivated
620 if (_imfManagerActivatedEventHandler == null)
622 _imfManagerActivatedEventCallback = OnImfManagerActivated;
623 ActivatedSignal().Connect(_imfManagerActivatedEventCallback);
626 _imfManagerActivatedEventHandler += value;
630 _imfManagerActivatedEventHandler -= value;
632 if (_imfManagerActivatedEventHandler == null && _imfManagerActivatedEventCallback != null)
634 ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
639 private void OnImfManagerActivated(global::System.IntPtr data)
641 ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs();
643 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
645 if (_imfManagerActivatedEventHandler != null)
647 _imfManagerActivatedEventHandler(this, e);
651 public ActivatedSignalType ActivatedSignal()
653 ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
658 // EventReceivedSignal
659 public class ImfManagerEventReceivedEventArgs : EventArgs
661 public ImfManager ImfManager
668 private delegate void ImfManagerEventReceivedEventCallbackType(global::System.IntPtr data);
669 private ImfManagerEventReceivedEventCallbackType _imfManagerEventReceivedEventCallback;
671 private event EventHandler<ImfManagerEventReceivedEventArgs> _imfManagerEventReceivedEventHandler;
672 public event EventHandler<ImfManagerEventReceivedEventArgs> ImfManagerEventReceived
676 if (_imfManagerEventReceivedEventHandler == null)
678 _imfManagerEventReceivedEventCallback = OnImfManagerEventReceived;
679 EventReceivedSignal().Connect(_imfManagerEventReceivedEventCallback);
682 _imfManagerEventReceivedEventHandler += value;
686 _imfManagerEventReceivedEventHandler -= value;
688 if (_imfManagerEventReceivedEventHandler == null && _imfManagerEventReceivedEventCallback != null)
690 EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
695 private void OnImfManagerEventReceived(global::System.IntPtr data)
697 ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs();
699 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
701 if (_imfManagerEventReceivedEventHandler != null)
703 _imfManagerEventReceivedEventHandler(this, e);
707 public ImfEventSignalType EventReceivedSignal()
709 ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
710 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
714 // StatusChangedSignal
715 public class ImfManagerStatusChangedEventArgs : EventArgs
717 public ImfManager ImfManager
724 private delegate void ImfManagerStatusChangedEventCallbackType(global::System.IntPtr data);
725 private ImfManagerStatusChangedEventCallbackType _imfManagerStatusChangedEventCallback;
727 private event EventHandler<ImfManagerStatusChangedEventArgs> _imfManagerStatusChangedEventHandler;
729 public event EventHandler<ImfManagerStatusChangedEventArgs> ImfManagerStatusChanged
733 if (_imfManagerStatusChangedEventHandler == null)
735 _imfManagerStatusChangedEventCallback = OnImfManagerStatusChanged;
736 StatusChangedSignal().Connect(_imfManagerStatusChangedEventCallback);
739 _imfManagerStatusChangedEventHandler += value;
743 _imfManagerStatusChangedEventHandler -= value;
745 if (_imfManagerStatusChangedEventHandler == null && _imfManagerStatusChangedEventCallback != null)
747 StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
752 private void OnImfManagerStatusChanged(global::System.IntPtr data)
754 ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs();
756 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
758 if (_imfManagerStatusChangedEventHandler != null)
760 _imfManagerStatusChangedEventHandler(this, e);
764 public StatusSignalType StatusChangedSignal()
766 StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
767 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
772 public class ImfManagerResizedEventArgs : EventArgs
774 public ImfManager ImfManager
781 private delegate void ImfManagerResizedEventCallbackType(global::System.IntPtr data);
782 private ImfManagerResizedEventCallbackType _imfManagerResizedEventCallback;
784 private event EventHandler<ImfManagerResizedEventArgs> _imfManagerResizedEventHandler;
786 public event EventHandler<ImfManagerResizedEventArgs> ImfManagerResized
790 if (_imfManagerResizedEventHandler == null)
792 _imfManagerResizedEventCallback = OnImfManagerResized;
793 ResizedSignal().Connect(_imfManagerResizedEventCallback);
796 _imfManagerResizedEventHandler += value;
800 _imfManagerResizedEventHandler -= value;
802 if (_imfManagerResizedEventHandler == null && _imfManagerResizedEventCallback != null)
804 ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
809 private void OnImfManagerResized(global::System.IntPtr data)
811 ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs();
813 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
815 if (_imfManagerResizedEventHandler != null)
817 _imfManagerResizedEventHandler(this, e);
821 public ImfVoidSignalType ResizedSignal()
823 ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), true);
824 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
828 // LanguageChangedSignal
829 public class ImfManagerLanguageChangedEventArgs : EventArgs
831 public ImfManager ImfManager
838 private delegate void ImfManagerLanguageChangedEventCallbackType(global::System.IntPtr data);
839 private ImfManagerLanguageChangedEventCallbackType _imfManagerLanguageChangedEventCallback;
841 private event EventHandler<ImfManagerLanguageChangedEventArgs> _imfManagerLanguageChangedEventHandler;
843 public event EventHandler<ImfManagerLanguageChangedEventArgs> ImfManagerLanguageChanged
847 if (_imfManagerLanguageChangedEventHandler == null)
849 _imfManagerLanguageChangedEventCallback = OnImfManagerLanguageChanged;
850 LanguageChangedSignal().Connect(_imfManagerLanguageChangedEventCallback);
853 _imfManagerLanguageChangedEventHandler += value;
857 _imfManagerLanguageChangedEventHandler -= value;
859 if (_imfManagerLanguageChangedEventHandler == null && _imfManagerLanguageChangedEventCallback != null)
861 LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
866 private void OnImfManagerLanguageChanged(global::System.IntPtr data)
868 ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs();
870 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
872 if (_imfManagerLanguageChangedEventHandler != null)
874 _imfManagerLanguageChangedEventHandler(this, e);
878 public ImfVoidSignalType LanguageChangedSignal()
880 ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), true);
881 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
886 ///////////////////////////////////////////////////////////////////////////////
887 internal class SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager
889 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
891 internal SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager(global::System.IntPtr cPtr, bool futureUse)
893 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
896 protected SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager()
898 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
901 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager obj)
903 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
907 internal class SWIGTYPE_p_InputMethodOptions
909 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
911 internal SWIGTYPE_p_InputMethodOptions(global::System.IntPtr cPtr, bool futureUse)
913 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
916 protected SWIGTYPE_p_InputMethodOptions()
918 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
921 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_InputMethodOptions obj)
923 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
927 ///////////////////////////////////////////////////////////////////////////////
928 public class ActivatedSignalType : global::System.IDisposable
930 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
931 protected bool swigCMemOwn;
933 internal ActivatedSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
935 swigCMemOwn = cMemoryOwn;
936 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
939 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ActivatedSignalType obj)
941 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
944 //A Flag to check who called Dispose(). (By User or DisposeQueue)
945 private bool isDisposeQueued = false;
946 //A Flat to check if it is already disposed.
947 protected bool disposed = false;
950 ~ActivatedSignalType()
952 if (!isDisposeQueued)
954 isDisposeQueued = true;
955 DisposeQueue.Instance.Add(this);
959 public void Dispose()
961 //Throw excpetion if Dispose() is called in separate thread.
962 if (!Window.IsInstalled())
964 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
969 Dispose(DisposeTypes.Implicit);
973 Dispose(DisposeTypes.Explicit);
974 System.GC.SuppressFinalize(this);
978 protected virtual void Dispose(DisposeTypes type)
985 if (type == DisposeTypes.Explicit)
988 //Release your own managed resources here.
989 //You should release all of your own disposable objects here.
993 //Release your own unmanaged resources here.
994 //You should not access any managed member here except static instance.
995 //because the execution order of Finalizes is non-deterministic.
997 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1001 swigCMemOwn = false;
1002 NDalicManualPINVOKE.delete_ActivatedSignalType(swigCPtr);
1004 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1012 bool ret = NDalicManualPINVOKE.ActivatedSignalType_Empty(swigCPtr);
1013 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1017 public uint GetConnectionCount()
1019 uint ret = NDalicManualPINVOKE.ActivatedSignalType_GetConnectionCount(swigCPtr);
1020 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1024 public void Connect(System.Delegate func)
1026 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1028 NDalicManualPINVOKE.ActivatedSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1029 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1033 public void Disconnect(System.Delegate func)
1035 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1037 NDalicManualPINVOKE.ActivatedSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1038 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1042 public void Emit(bool arg)
1044 NDalicManualPINVOKE.ActivatedSignalType_Emit(swigCPtr, arg);
1045 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1048 public ActivatedSignalType() : this(NDalicManualPINVOKE.new_ActivatedSignalType(), true)
1050 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1055 ///////////////////////////////////////////////////////////////////////////////
1056 public class ImfEventSignalType : global::System.IDisposable
1058 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1059 protected bool swigCMemOwn;
1061 internal ImfEventSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
1063 swigCMemOwn = cMemoryOwn;
1064 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1067 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfEventSignalType obj)
1069 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1072 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1073 private bool isDisposeQueued = false;
1074 //A Flat to check if it is already disposed.
1075 protected bool disposed = false;
1078 ~ImfEventSignalType()
1080 if (!isDisposeQueued)
1082 isDisposeQueued = true;
1083 DisposeQueue.Instance.Add(this);
1087 public void Dispose()
1089 //Throw excpetion if Dispose() is called in separate thread.
1090 if (!Window.IsInstalled())
1092 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1095 if (isDisposeQueued)
1097 Dispose(DisposeTypes.Implicit);
1101 Dispose(DisposeTypes.Explicit);
1102 System.GC.SuppressFinalize(this);
1106 protected virtual void Dispose(DisposeTypes type)
1113 if (type == DisposeTypes.Explicit)
1116 //Release your own managed resources here.
1117 //You should release all of your own disposable objects here.
1121 //Release your own unmanaged resources here.
1122 //You should not access any managed member here except static instance.
1123 //because the execution order of Finalizes is non-deterministic.
1125 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1129 swigCMemOwn = false;
1130 NDalicManualPINVOKE.delete_ImfEventSignalType(swigCPtr);
1132 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1140 bool ret = NDalicManualPINVOKE.ImfEventSignalType_Empty(swigCPtr);
1141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1145 public uint GetConnectionCount()
1147 uint ret = NDalicManualPINVOKE.ImfEventSignalType_GetConnectionCount(swigCPtr);
1148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1152 public void Connect(System.Delegate func)
1154 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1156 NDalicManualPINVOKE.ImfEventSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1161 public void Disconnect(System.Delegate func)
1163 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1165 NDalicManualPINVOKE.ImfEventSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1166 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1170 public void Emit(bool arg1, bool arg2)
1172 NDalicManualPINVOKE.ImfEventSignalType_Emit(swigCPtr, arg1, arg2);
1173 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1176 public ImfEventSignalType() : this(NDalicManualPINVOKE.new_ImfEventSignalType(), true)
1178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1183 ///////////////////////////////////////////////////////////////////////////////
1184 public class StatusSignalType : global::System.IDisposable
1186 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1187 protected bool swigCMemOwn;
1189 internal StatusSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
1191 swigCMemOwn = cMemoryOwn;
1192 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1195 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StatusSignalType obj)
1197 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1200 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1201 private bool isDisposeQueued = false;
1202 //A Flat to check if it is already disposed.
1203 protected bool disposed = false;
1208 if (!isDisposeQueued)
1210 isDisposeQueued = true;
1211 DisposeQueue.Instance.Add(this);
1215 public void Dispose()
1217 //Throw excpetion if Dispose() is called in separate thread.
1218 if (!Window.IsInstalled())
1220 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1223 if (isDisposeQueued)
1225 Dispose(DisposeTypes.Implicit);
1229 Dispose(DisposeTypes.Explicit);
1230 System.GC.SuppressFinalize(this);
1234 protected virtual void Dispose(DisposeTypes type)
1241 if (type == DisposeTypes.Explicit)
1244 //Release your own managed resources here.
1245 //You should release all of your own disposable objects here.
1249 //Release your own unmanaged resources here.
1250 //You should not access any managed member here except static instance.
1251 //because the execution order of Finalizes is non-deterministic.
1253 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1257 swigCMemOwn = false;
1258 NDalicManualPINVOKE.delete_StatusSignalType(swigCPtr);
1260 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1268 bool ret = NDalicManualPINVOKE.StatusSignalType_Empty(swigCPtr);
1269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1273 public uint GetConnectionCount()
1275 uint ret = NDalicManualPINVOKE.StatusSignalType_GetConnectionCount(swigCPtr);
1276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1280 public void Connect(System.Delegate func)
1282 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1284 NDalicManualPINVOKE.StatusSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1289 public void Disconnect(System.Delegate func)
1291 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1293 NDalicManualPINVOKE.StatusSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1298 public void Emit(bool arg)
1300 NDalicManualPINVOKE.StatusSignalType_Emit(swigCPtr, arg);
1301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1304 public StatusSignalType() : this(NDalicManualPINVOKE.new_StatusSignalType(), true)
1306 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1311 ///////////////////////////////////////////////////////////////////////////////
1312 public class ImfVoidSignalType : global::System.IDisposable
1314 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1315 protected bool swigCMemOwn;
1317 internal ImfVoidSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
1319 swigCMemOwn = cMemoryOwn;
1320 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1323 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfVoidSignalType obj)
1325 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1328 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1329 private bool isDisposeQueued = false;
1330 //A Flat to check if it is already disposed.
1331 protected bool disposed = false;
1334 ~ImfVoidSignalType()
1336 if (!isDisposeQueued)
1338 isDisposeQueued = true;
1339 DisposeQueue.Instance.Add(this);
1343 public void Dispose()
1345 //Throw excpetion if Dispose() is called in separate thread.
1346 if (!Window.IsInstalled())
1348 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1351 if (isDisposeQueued)
1353 Dispose(DisposeTypes.Implicit);
1357 Dispose(DisposeTypes.Explicit);
1358 System.GC.SuppressFinalize(this);
1362 protected virtual void Dispose(DisposeTypes type)
1369 if (type == DisposeTypes.Explicit)
1372 //Release your own managed resources here.
1373 //You should release all of your own disposable objects here.
1377 //Release your own unmanaged resources here.
1378 //You should not access any managed member here except static instance.
1379 //because the execution order of Finalizes is non-deterministic.
1381 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1385 swigCMemOwn = false;
1386 NDalicManualPINVOKE.delete_ImfVoidSignalType(swigCPtr);
1388 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1396 bool ret = NDalicManualPINVOKE.ImfVoidSignalType_Empty(swigCPtr);
1397 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1401 public uint GetConnectionCount()
1403 uint ret = NDalicManualPINVOKE.ImfVoidSignalType_GetConnectionCount(swigCPtr);
1404 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1408 public void Connect(System.Delegate func)
1410 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1412 NDalicManualPINVOKE.ImfVoidSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1413 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1417 public void Disconnect(System.Delegate func)
1419 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1421 NDalicManualPINVOKE.ImfVoidSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1422 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1428 NDalicManualPINVOKE.ImfVoidSignalType_Emit(swigCPtr);
1429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1432 public ImfVoidSignalType() : this(NDalicManualPINVOKE.new_ImfVoidSignalType(), true)
1434 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();