From 80b655ebf2b32980f84b367a1d4e570865702db2 Mon Sep 17 00:00:00 2001 From: Seoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com> Date: Thu, 26 Sep 2019 11:15:59 +0900 Subject: [PATCH] [NUI] Add to set the position of input panel (#1034) * [NUI] Add to set the input panel position Signed-off-by: Seoyeon Kim * [NUI] Update the version because of the hidden API Signed-off-by: Seoyeon Kim * Update the description - Changed 'tizen_6.0' in the description to 'tizen_next' Signed-off-by: Seoyeon Kim --- .../internal/Interop/Interop.InputMethodContext.cs | 3 +++ src/Tizen.NUI/src/public/InputMethodContext.cs | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.InputMethodContext.cs b/src/Tizen.NUI/src/internal/Interop/Interop.InputMethodContext.cs index a8f6ed9ff..be3f717d8 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.InputMethodContext.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.InputMethodContext.cs @@ -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); diff --git a/src/Tizen.NUI/src/public/InputMethodContext.cs b/src/Tizen.NUI/src/public/InputMethodContext.cs index 5d8acd2d6..c480517dc 100755 --- a/src/Tizen.NUI/src/public/InputMethodContext.cs +++ b/src/Tizen.NUI/src/public/InputMethodContext.cs @@ -654,6 +654,19 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Sets the x,y coordinates of the input panel. + /// + /// The top-left x coordinate of the input panel. + /// The top-left y coordinate of the input panel. + /// 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; -- 2.34.1