[NUI] Add to set the position of input panel (#1034)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Thu, 26 Sep 2019 02:15:59 +0000 (11:15 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 26 Sep 2019 02:15:59 +0000 (11:15 +0900)
* [NUI] Add to set the input panel position

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* [NUI] Update the version because of the hidden API

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* Update the description

- Changed 'tizen_6.0' in the description to 'tizen_next'

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.InputMethodContext.cs
src/Tizen.NUI/src/public/InputMethodContext.cs

index a8f6ed9ffa14166707db3dae580e21c84defc1bd..be3f717d850900f28f4d7923293aa6da884d36a2 100755 (executable)
@@ -177,6 +177,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_IsTextPredictionAllowed")]
             public static extern bool InputMethodContext_IsTextPredictionAllowed(global::System.Runtime.InteropServices.HandleRef jarg1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_SetInputPanelPosition")]
+            public static extern void InputMethodContext_SetInputPanelPosition(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, uint jarg3);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_ActivatedSignal")]
             public static extern global::System.IntPtr InputMethodContext_ActivatedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index 5d8acd2d6c740f043cb90c5165138e053289695a..c480517dc0a4e27c11808a2b1a27e1a666545438 100755 (executable)
@@ -654,6 +654,19 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// <summary>
+        /// Sets the x,y coordinates of the input panel.
+        /// </summary>
+        /// <param name="x">The top-left x coordinate of the input panel.</param>
+        /// <param name="y">The top-left y coordinate of the input panel.</param>
+        /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void SetInputPanelPosition(uint x, uint y)
+        {
+            Interop.InputMethodContext.InputMethodContext_SetInputPanelPosition(swigCPtr, x, y);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputMethodContext obj)
         {
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;