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)
61 NDalicManualPINVOKE.delete_ImfManager(swigCPtr);
63 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
69 public class ImfEventData : global::System.IDisposable
71 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
72 protected bool swigCMemOwn;
74 internal ImfEventData(global::System.IntPtr cPtr, bool cMemoryOwn)
76 swigCMemOwn = cMemoryOwn;
77 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
80 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfEventData obj)
82 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
85 //A Flag to check who called Dispose(). (By User or DisposeQueue)
86 private bool isDisposeQueued = false;
87 //A Flat to check if it is already disposed.
88 protected bool disposed = false;
95 isDisposeQueued = true;
96 DisposeQueue.Instance.Add(this);
100 public void Dispose()
102 //Throw excpetion if Dispose() is called in separate thread.
103 if (!Window.IsInstalled())
105 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
110 Dispose(DisposeTypes.Implicit);
114 Dispose(DisposeTypes.Explicit);
115 System.GC.SuppressFinalize(this);
119 protected virtual void Dispose(DisposeTypes type)
126 if (type == DisposeTypes.Explicit)
129 //Release your own managed resources here.
130 //You should release all of your own disposable objects here.
134 //Release your own unmanaged resources here.
135 //You should not access any managed member here except static instance.
136 //because the execution order of Finalizes is non-deterministic.
138 if (swigCPtr.Handle != global::System.IntPtr.Zero)
143 NDalicManualPINVOKE.delete_ImfManager_ImfEventData(swigCPtr);
145 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
151 public ImfEventData() : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_0(), true)
153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156 public ImfEventData(ImfManager.ImfEvent aEventName, string aPredictiveString, int aCursorOffset, int aNumberOfChars) : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_1((int)aEventName, aPredictiveString, aCursorOffset, aNumberOfChars), true)
158 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161 public string predictiveString
165 NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
166 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170 string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176 public ImfManager.ImfEvent eventName
180 NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
185 ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
191 public int cursorOffset
195 NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
196 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
200 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
206 public int numberOfChars
210 NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
223 public class ImfCallbackData : global::System.IDisposable
225 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
226 protected bool swigCMemOwn;
228 internal ImfCallbackData(global::System.IntPtr cPtr, bool cMemoryOwn)
230 swigCMemOwn = cMemoryOwn;
231 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
234 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfCallbackData obj)
236 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
239 //A Flag to check who called Dispose(). (By User or DisposeQueue)
240 private bool isDisposeQueued = false;
241 //A Flat to check if it is already disposed.
242 protected bool disposed = false;
247 if (!isDisposeQueued)
249 isDisposeQueued = true;
250 DisposeQueue.Instance.Add(this);
254 public void Dispose()
256 //Throw excpetion if Dispose() is called in separate thread.
257 if (!Window.IsInstalled())
259 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
264 Dispose(DisposeTypes.Implicit);
268 Dispose(DisposeTypes.Explicit);
269 System.GC.SuppressFinalize(this);
273 protected virtual void Dispose(DisposeTypes type)
280 if (type == DisposeTypes.Explicit)
283 //Release your own managed resources here.
284 //You should release all of your own disposable objects here.
288 //Release your own unmanaged resources here.
289 //You should not access any managed member here except static instance.
290 //because the execution order of Finalizes is non-deterministic.
292 if (swigCPtr.Handle != global::System.IntPtr.Zero)
297 NDalicManualPINVOKE.delete_ImfManager_ImfCallbackData(swigCPtr);
299 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
305 public ImfCallbackData() : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_0(), true)
307 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
310 public ImfCallbackData(bool aUpdate, int aCursorPosition, string aCurrentText, bool aPreeditResetRequired) : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_1(aUpdate, aCursorPosition, aCurrentText, aPreeditResetRequired), true)
312 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
315 public string currentText
319 NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
320 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
324 string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
325 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
330 public int cursorPosition
334 NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339 int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
340 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
349 NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
350 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
354 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 public bool preeditResetRequired
364 NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
365 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377 public static ImfManager Get()
379 ImfManager ret = new ImfManager(NDalicManualPINVOKE.ImfManager_Get(), true);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
384 public void Activate()
386 NDalicManualPINVOKE.ImfManager_Activate(swigCPtr);
387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
390 public void Deactivate()
392 NDalicManualPINVOKE.ImfManager_Deactivate(swigCPtr);
393 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 public bool RestoreAfterFocusLost()
398 bool ret = NDalicManualPINVOKE.ImfManager_RestoreAfterFocusLost(swigCPtr);
399 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403 public void SetRestoreAfterFocusLost(bool toggle)
405 NDalicManualPINVOKE.ImfManager_SetRestoreAfterFocusLost(swigCPtr, toggle);
406 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 public new void Reset()
411 NDalicManualPINVOKE.ImfManager_Reset(swigCPtr);
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
415 public void NotifyCursorPosition()
417 NDalicManualPINVOKE.ImfManager_NotifyCursorPosition(swigCPtr);
418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 public void SetCursorPosition(uint cursorPosition)
423 NDalicManualPINVOKE.ImfManager_SetCursorPosition(swigCPtr, cursorPosition);
424 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
427 public uint GetCursorPosition()
429 uint ret = NDalicManualPINVOKE.ImfManager_GetCursorPosition(swigCPtr);
430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434 public void SetSurroundingText(string text)
436 NDalicManualPINVOKE.ImfManager_SetSurroundingText(swigCPtr, text);
437 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440 public string GetSurroundingText()
442 string ret = NDalicManualPINVOKE.ImfManager_GetSurroundingText(swigCPtr);
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447 public void NotifyTextInputMultiLine(bool multiLine)
449 NDalicManualPINVOKE.ImfManager_NotifyTextInputMultiLine(swigCPtr, multiLine);
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
453 public ImfManager.TextDirection GetTextDirection()
455 ImfManager.TextDirection ret = (ImfManager.TextDirection)NDalicManualPINVOKE.ImfManager_GetTextDirection(swigCPtr);
456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460 public Rectangle GetInputMethodArea()
462 Rectangle ret = new Rectangle(NDalicManualPINVOKE.ImfManager_GetInputMethodArea(swigCPtr), true);
463 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
467 internal void ApplyOptions(SWIGTYPE_p_InputMethodOptions options)
469 NDalicManualPINVOKE.ImfManager_ApplyOptions(swigCPtr, SWIGTYPE_p_InputMethodOptions.getCPtr(options));
470 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
473 public void SetInputPanelUserData(string text)
475 NDalicManualPINVOKE.ImfManager_SetInputPanelUserData(swigCPtr, text);
476 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 public void GetInputPanelUserData(string text)
481 NDalicManualPINVOKE.ImfManager_GetInputPanelUserData(swigCPtr, text);
482 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
485 public ImfManager.State GetInputPanelState()
487 ImfManager.State ret = (ImfManager.State)NDalicManualPINVOKE.ImfManager_GetInputPanelState(swigCPtr);
488 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492 public void SetReturnKeyState(bool visible)
494 NDalicManualPINVOKE.ImfManager_SetReturnKeyState(swigCPtr, visible);
495 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498 public void AutoEnableInputPanel(bool enabled)
500 NDalicManualPINVOKE.ImfManager_AutoEnableInputPanel(swigCPtr, enabled);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504 public void ShowInputPanel()
506 NDalicManualPINVOKE.ImfManager_ShowInputPanel(swigCPtr);
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510 public void HideInputPanel()
512 NDalicManualPINVOKE.ImfManager_HideInputPanel(swigCPtr);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
517 public SWIGTYPE_p_Dali__SignalT_void_fDali__ImfManager_RF_t ActivatedSignal()
519 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);
520 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 public SWIGTYPE_p_Dali__SignalT_Dali__ImfManager__ImfCallbackData_fDali__ImfManager_R_Dali__ImfManager__ImfEventData_const_RF_t EventReceivedSignal()
526 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);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531 public WindowFocusSignalType StatusChangedSignal()
533 WindowFocusSignalType ret = new WindowFocusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
534 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538 public VoidSignal ResizedSignal()
540 VoidSignal ret = new VoidSignal(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545 public VoidSignal LanguageChangedSignal()
547 VoidSignal ret = new VoidSignal(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
548 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
553 public ImfManager() : this(NDalicManualPINVOKE.new_ImfManager__SWIG_0(), true)
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558 internal ImfManager(SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager imfManager) : this(NDalicManualPINVOKE.new_ImfManager__SWIG_1(SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager.getCPtr(imfManager)), true)
560 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563 public enum TextDirection
589 ///////////////////////////////////////////////////////////////////////////////
590 internal static ImfManager GetImfManagerFromPtr(global::System.IntPtr cPtr)
592 ImfManager ret = new ImfManager(cPtr, false);
593 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597 public class ImfManagerActivatedEventArgs : EventArgs
599 public ImfManager ImfManager
606 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
607 private delegate void ImfManagerActivatedEventCallbackType(global::System.IntPtr data);
608 private ImfManagerActivatedEventCallbackType _imfManagerActivatedEventCallback;
610 private event EventHandler<ImfManagerActivatedEventArgs> _imfManagerActivatedEventHandler;
612 public event EventHandler<ImfManagerActivatedEventArgs> ImfManagerActivated
616 if (_imfManagerActivatedEventHandler == null)
618 _imfManagerActivatedEventCallback = OnImfManagerActivated;
619 ActivatedSignal().Connect(_imfManagerActivatedEventCallback);
622 _imfManagerActivatedEventHandler += value;
626 _imfManagerActivatedEventHandler -= value;
628 if (_imfManagerActivatedEventHandler == null && _imfManagerActivatedEventCallback != null)
630 ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
635 private void OnImfManagerActivated(global::System.IntPtr data)
637 ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs();
639 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
641 if (_imfManagerActivatedEventHandler != null)
643 _imfManagerActivatedEventHandler(this, e);
647 public ActivatedSignalType ActivatedSignal()
649 ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 // EventReceivedSignal
655 public class ImfManagerEventReceivedEventArgs : EventArgs
657 public ImfManager ImfManager
664 private delegate void ImfManagerEventReceivedEventCallbackType(global::System.IntPtr data);
665 private ImfManagerEventReceivedEventCallbackType _imfManagerEventReceivedEventCallback;
667 private event EventHandler<ImfManagerEventReceivedEventArgs> _imfManagerEventReceivedEventHandler;
668 public event EventHandler<ImfManagerEventReceivedEventArgs> ImfManagerEventReceived
672 if (_imfManagerEventReceivedEventHandler == null)
674 _imfManagerEventReceivedEventCallback = OnImfManagerEventReceived;
675 EventReceivedSignal().Connect(_imfManagerEventReceivedEventCallback);
678 _imfManagerEventReceivedEventHandler += value;
682 _imfManagerEventReceivedEventHandler -= value;
684 if (_imfManagerEventReceivedEventHandler == null && _imfManagerEventReceivedEventCallback != null)
686 EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
691 private void OnImfManagerEventReceived(global::System.IntPtr data)
693 ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs();
695 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
697 if (_imfManagerEventReceivedEventHandler != null)
699 _imfManagerEventReceivedEventHandler(this, e);
703 public ImfEventSignalType EventReceivedSignal()
705 ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
706 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 // StatusChangedSignal
711 public class ImfManagerStatusChangedEventArgs : EventArgs
713 public ImfManager ImfManager
720 private delegate void ImfManagerStatusChangedEventCallbackType(global::System.IntPtr data);
721 private ImfManagerStatusChangedEventCallbackType _imfManagerStatusChangedEventCallback;
723 private event EventHandler<ImfManagerStatusChangedEventArgs> _imfManagerStatusChangedEventHandler;
725 public event EventHandler<ImfManagerStatusChangedEventArgs> ImfManagerStatusChanged
729 if (_imfManagerStatusChangedEventHandler == null)
731 _imfManagerStatusChangedEventCallback = OnImfManagerStatusChanged;
732 StatusChangedSignal().Connect(_imfManagerStatusChangedEventCallback);
735 _imfManagerStatusChangedEventHandler += value;
739 _imfManagerStatusChangedEventHandler -= value;
741 if (_imfManagerStatusChangedEventHandler == null && _imfManagerStatusChangedEventCallback != null)
743 StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
748 private void OnImfManagerStatusChanged(global::System.IntPtr data)
750 ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs();
752 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
754 if (_imfManagerStatusChangedEventHandler != null)
756 _imfManagerStatusChangedEventHandler(this, e);
760 public StatusSignalType StatusChangedSignal()
762 StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
763 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
768 public class ImfManagerResizedEventArgs : EventArgs
770 public ImfManager ImfManager
777 private delegate void ImfManagerResizedEventCallbackType(global::System.IntPtr data);
778 private ImfManagerResizedEventCallbackType _imfManagerResizedEventCallback;
780 private event EventHandler<ImfManagerResizedEventArgs> _imfManagerResizedEventHandler;
782 public event EventHandler<ImfManagerResizedEventArgs> ImfManagerResized
786 if (_imfManagerResizedEventHandler == null)
788 _imfManagerResizedEventCallback = OnImfManagerResized;
789 ResizedSignal().Connect(_imfManagerResizedEventCallback);
792 _imfManagerResizedEventHandler += value;
796 _imfManagerResizedEventHandler -= value;
798 if (_imfManagerResizedEventHandler == null && _imfManagerResizedEventCallback != null)
800 ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
805 private void OnImfManagerResized(global::System.IntPtr data)
807 ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs();
809 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
811 if (_imfManagerResizedEventHandler != null)
813 _imfManagerResizedEventHandler(this, e);
817 public ImfVoidSignalType ResizedSignal()
819 ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), true);
820 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
824 // LanguageChangedSignal
825 public class ImfManagerLanguageChangedEventArgs : EventArgs
827 public ImfManager ImfManager
834 private delegate void ImfManagerLanguageChangedEventCallbackType(global::System.IntPtr data);
835 private ImfManagerLanguageChangedEventCallbackType _imfManagerLanguageChangedEventCallback;
837 private event EventHandler<ImfManagerLanguageChangedEventArgs> _imfManagerLanguageChangedEventHandler;
839 public event EventHandler<ImfManagerLanguageChangedEventArgs> ImfManagerLanguageChanged
843 if (_imfManagerLanguageChangedEventHandler == null)
845 _imfManagerLanguageChangedEventCallback = OnImfManagerLanguageChanged;
846 LanguageChangedSignal().Connect(_imfManagerLanguageChangedEventCallback);
849 _imfManagerLanguageChangedEventHandler += value;
853 _imfManagerLanguageChangedEventHandler -= value;
855 if (_imfManagerLanguageChangedEventHandler == null && _imfManagerLanguageChangedEventCallback != null)
857 LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
862 private void OnImfManagerLanguageChanged(global::System.IntPtr data)
864 ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs();
866 e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
868 if (_imfManagerLanguageChangedEventHandler != null)
870 _imfManagerLanguageChangedEventHandler(this, e);
874 public ImfVoidSignalType LanguageChangedSignal()
876 ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), true);
877 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
882 ///////////////////////////////////////////////////////////////////////////////
883 internal class SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager
885 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
887 internal SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager(global::System.IntPtr cPtr, bool futureUse)
889 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
892 protected SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager()
894 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
897 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Dali__Internal__Adaptor__ImfManager obj)
899 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
903 internal class SWIGTYPE_p_InputMethodOptions
905 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
907 internal SWIGTYPE_p_InputMethodOptions(global::System.IntPtr cPtr, bool futureUse)
909 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
912 protected SWIGTYPE_p_InputMethodOptions()
914 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
917 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_InputMethodOptions obj)
919 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
923 ///////////////////////////////////////////////////////////////////////////////
924 public class ActivatedSignalType : global::System.IDisposable
926 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
927 protected bool swigCMemOwn;
929 internal ActivatedSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
931 swigCMemOwn = cMemoryOwn;
932 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
935 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ActivatedSignalType obj)
937 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
940 //A Flag to check who called Dispose(). (By User or DisposeQueue)
941 private bool isDisposeQueued = false;
942 //A Flat to check if it is already disposed.
943 protected bool disposed = false;
946 ~ActivatedSignalType()
948 if (!isDisposeQueued)
950 isDisposeQueued = true;
951 DisposeQueue.Instance.Add(this);
955 public void Dispose()
957 //Throw excpetion if Dispose() is called in separate thread.
958 if (!Window.IsInstalled())
960 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
965 Dispose(DisposeTypes.Implicit);
969 Dispose(DisposeTypes.Explicit);
970 System.GC.SuppressFinalize(this);
974 protected virtual void Dispose(DisposeTypes type)
981 if (type == DisposeTypes.Explicit)
984 //Release your own managed resources here.
985 //You should release all of your own disposable objects here.
989 //Release your own unmanaged resources here.
990 //You should not access any managed member here except static instance.
991 //because the execution order of Finalizes is non-deterministic.
993 if (swigCPtr.Handle != global::System.IntPtr.Zero)
998 NDalicManualPINVOKE.delete_ActivatedSignalType(swigCPtr);
1000 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1008 bool ret = NDalicManualPINVOKE.ActivatedSignalType_Empty(swigCPtr);
1009 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1013 public uint GetConnectionCount()
1015 uint ret = NDalicManualPINVOKE.ActivatedSignalType_GetConnectionCount(swigCPtr);
1016 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1020 public void Connect(System.Delegate func)
1022 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1024 NDalicManualPINVOKE.ActivatedSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1025 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1029 public void Disconnect(System.Delegate func)
1031 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1033 NDalicManualPINVOKE.ActivatedSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1034 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1038 public void Emit(bool arg)
1040 NDalicManualPINVOKE.ActivatedSignalType_Emit(swigCPtr, arg);
1041 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1044 public ActivatedSignalType() : this(NDalicManualPINVOKE.new_ActivatedSignalType(), true)
1046 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1051 ///////////////////////////////////////////////////////////////////////////////
1052 public class ImfEventSignalType : global::System.IDisposable
1054 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1055 protected bool swigCMemOwn;
1057 internal ImfEventSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
1059 swigCMemOwn = cMemoryOwn;
1060 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1063 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfEventSignalType obj)
1065 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1068 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1069 private bool isDisposeQueued = false;
1070 //A Flat to check if it is already disposed.
1071 protected bool disposed = false;
1074 ~ImfEventSignalType()
1076 if (!isDisposeQueued)
1078 isDisposeQueued = true;
1079 DisposeQueue.Instance.Add(this);
1083 public void Dispose()
1085 //Throw excpetion if Dispose() is called in separate thread.
1086 if (!Window.IsInstalled())
1088 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1091 if (isDisposeQueued)
1093 Dispose(DisposeTypes.Implicit);
1097 Dispose(DisposeTypes.Explicit);
1098 System.GC.SuppressFinalize(this);
1102 protected virtual void Dispose(DisposeTypes type)
1109 if (type == DisposeTypes.Explicit)
1112 //Release your own managed resources here.
1113 //You should release all of your own disposable objects here.
1117 //Release your own unmanaged resources here.
1118 //You should not access any managed member here except static instance.
1119 //because the execution order of Finalizes is non-deterministic.
1121 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1125 swigCMemOwn = false;
1126 NDalicManualPINVOKE.delete_ImfEventSignalType(swigCPtr);
1128 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1136 bool ret = NDalicManualPINVOKE.ImfEventSignalType_Empty(swigCPtr);
1137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1141 public uint GetConnectionCount()
1143 uint ret = NDalicManualPINVOKE.ImfEventSignalType_GetConnectionCount(swigCPtr);
1144 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1148 public void Connect(System.Delegate func)
1150 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1152 NDalicManualPINVOKE.ImfEventSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1157 public void Disconnect(System.Delegate func)
1159 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1161 NDalicManualPINVOKE.ImfEventSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1162 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1166 public void Emit(bool arg1, bool arg2)
1168 NDalicManualPINVOKE.ImfEventSignalType_Emit(swigCPtr, arg1, arg2);
1169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1172 public ImfEventSignalType() : this(NDalicManualPINVOKE.new_ImfEventSignalType(), true)
1174 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1179 ///////////////////////////////////////////////////////////////////////////////
1180 public class StatusSignalType : global::System.IDisposable
1182 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1183 protected bool swigCMemOwn;
1185 internal StatusSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
1187 swigCMemOwn = cMemoryOwn;
1188 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1191 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StatusSignalType obj)
1193 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1196 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1197 private bool isDisposeQueued = false;
1198 //A Flat to check if it is already disposed.
1199 protected bool disposed = false;
1204 if (!isDisposeQueued)
1206 isDisposeQueued = true;
1207 DisposeQueue.Instance.Add(this);
1211 public void Dispose()
1213 //Throw excpetion if Dispose() is called in separate thread.
1214 if (!Window.IsInstalled())
1216 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1219 if (isDisposeQueued)
1221 Dispose(DisposeTypes.Implicit);
1225 Dispose(DisposeTypes.Explicit);
1226 System.GC.SuppressFinalize(this);
1230 protected virtual void Dispose(DisposeTypes type)
1237 if (type == DisposeTypes.Explicit)
1240 //Release your own managed resources here.
1241 //You should release all of your own disposable objects here.
1245 //Release your own unmanaged resources here.
1246 //You should not access any managed member here except static instance.
1247 //because the execution order of Finalizes is non-deterministic.
1249 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1253 swigCMemOwn = false;
1254 NDalicManualPINVOKE.delete_StatusSignalType(swigCPtr);
1256 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1264 bool ret = NDalicManualPINVOKE.StatusSignalType_Empty(swigCPtr);
1265 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1269 public uint GetConnectionCount()
1271 uint ret = NDalicManualPINVOKE.StatusSignalType_GetConnectionCount(swigCPtr);
1272 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1276 public void Connect(System.Delegate func)
1278 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1280 NDalicManualPINVOKE.StatusSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1285 public void Disconnect(System.Delegate func)
1287 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1289 NDalicManualPINVOKE.StatusSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1290 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1294 public void Emit(bool arg)
1296 NDalicManualPINVOKE.StatusSignalType_Emit(swigCPtr, arg);
1297 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1300 public StatusSignalType() : this(NDalicManualPINVOKE.new_StatusSignalType(), true)
1302 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1307 ///////////////////////////////////////////////////////////////////////////////
1308 public class ImfVoidSignalType : global::System.IDisposable
1310 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1311 protected bool swigCMemOwn;
1313 internal ImfVoidSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
1315 swigCMemOwn = cMemoryOwn;
1316 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1319 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfVoidSignalType obj)
1321 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1324 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1325 private bool isDisposeQueued = false;
1326 //A Flat to check if it is already disposed.
1327 protected bool disposed = false;
1330 ~ImfVoidSignalType()
1332 if (!isDisposeQueued)
1334 isDisposeQueued = true;
1335 DisposeQueue.Instance.Add(this);
1339 public void Dispose()
1341 //Throw excpetion if Dispose() is called in separate thread.
1342 if (!Window.IsInstalled())
1344 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1347 if (isDisposeQueued)
1349 Dispose(DisposeTypes.Implicit);
1353 Dispose(DisposeTypes.Explicit);
1354 System.GC.SuppressFinalize(this);
1358 protected virtual void Dispose(DisposeTypes type)
1365 if (type == DisposeTypes.Explicit)
1368 //Release your own managed resources here.
1369 //You should release all of your own disposable objects here.
1373 //Release your own unmanaged resources here.
1374 //You should not access any managed member here except static instance.
1375 //because the execution order of Finalizes is non-deterministic.
1377 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1381 swigCMemOwn = false;
1382 NDalicManualPINVOKE.delete_ImfVoidSignalType(swigCPtr);
1384 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1392 bool ret = NDalicManualPINVOKE.ImfVoidSignalType_Empty(swigCPtr);
1393 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1397 public uint GetConnectionCount()
1399 uint ret = NDalicManualPINVOKE.ImfVoidSignalType_GetConnectionCount(swigCPtr);
1400 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1404 public void Connect(System.Delegate func)
1406 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1408 NDalicManualPINVOKE.ImfVoidSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1409 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1413 public void Disconnect(System.Delegate func)
1415 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1417 NDalicManualPINVOKE.ImfVoidSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
1418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1424 NDalicManualPINVOKE.ImfVoidSignalType_Emit(swigCPtr);
1425 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1428 public ImfVoidSignalType() : this(NDalicManualPINVOKE.new_ImfVoidSignalType(), true)
1430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();