X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FInputMethodContext.cs;h=5d8acd2d6c740f043cb90c5165138e053289695a;hb=46b8a31f5c1c75a22b648ca394a4de8a50898513;hp=11240edc7647c0828e84bb2cac497cc1db11bea5;hpb=b3605d7ee0ea1bc0de484c1451b87756874b2b04;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI/src/public/InputMethodContext.cs b/src/Tizen.NUI/src/public/InputMethodContext.cs
index 11240ed..5d8acd2 100755
--- a/src/Tizen.NUI/src/public/InputMethodContext.cs
+++ b/src/Tizen.NUI/src/public/InputMethodContext.cs
@@ -22,576 +22,402 @@ using System.ComponentModel;
namespace Tizen.NUI
{
///
- /// Specifically manages the input method framework which enables the virtual or hardware keyboards.
+ /// Specifically manages the input method framework (IMF) that enables the virtual or hardware keyboards.
///
- /// 3
+ /// 5
public class InputMethodContext : BaseHandle
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- internal InputMethodContext(IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.InputMethodContext_SWIGUpcast(cPtr), cMemoryOwn)
+ private ActivatedEventCallbackType _activatedEventCallback;
+ private EventReceivedEventCallbackType _eventReceivedEventCallback;
+ private StatusChangedEventCallbackType _statusChangedEventCallback;
+ private ResizedEventCallbackType _resizedEventCallback;
+ private LanguageChangedEventCallbackType _languageChangedEventCallback;
+ private KeyboardTypeChangedEventCallbackType _keyboardTypeChangedEventCallback;
+ private ContentReceivedCallbackType _contentReceivedEventCallback;
+
+ ///
+ /// Constructor.
+ ///
+ /// 5
+ public InputMethodContext() : this(Interop.InputMethodContext.InputMethodContext_New(), true)
{
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputMethodContext obj)
+ internal InputMethodContext(IntPtr cPtr, bool cMemoryOwn) : base(Interop.InputMethodContext.InputMethodContext_SWIGUpcast(cPtr), cMemoryOwn)
{
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void ActivatedEventCallbackType(IntPtr data);
+ private delegate IntPtr EventReceivedEventCallbackType(IntPtr inputMethodContext, IntPtr eventData);
+ private delegate void StatusChangedEventCallbackType(bool statusChanged);
+ private delegate void ResizedEventCallbackType(int resized);
+ private delegate void LanguageChangedEventCallbackType(int languageChanged);
+ private delegate void KeyboardTypeChangedEventCallbackType(KeyboardType type);
+ private delegate void ContentReceivedCallbackType(string content, string description, string mimeType);
+
+ private event EventHandler _activatedEventHandler;
+ private event EventHandlerWithReturnType