From: joogab.yun Date: Mon, 10 Jul 2023 05:45:56 +0000 (+0900) Subject: [NUI] Binding IsFloatingModeEnabled() X-Git-Tag: submit/tizen/20230711.055619~1^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd066097384d9614fb14bde7c8ff6d9c18e48c19;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Binding IsFloatingModeEnabled() refer : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/295493/ https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/295494/ --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs index 26cf90fa4..644cbe212 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs @@ -276,6 +276,10 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_EnableFloatingMode")] public static extern void EnableFloatingMode(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_IsFloatingModeEnabled")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] + public static extern bool IsFloatingModeEnabled(global::System.Runtime.InteropServices.HandleRef window); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_RequestMoveToServer")] public static extern void RequestMoveToServer(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/src/Tizen.NUI/src/public/Window/Window.cs b/src/Tizen.NUI/src/public/Window/Window.cs index 96e2950d7..ccfa9c317 100755 --- a/src/Tizen.NUI/src/public/Window/Window.cs +++ b/src/Tizen.NUI/src/public/Window/Window.cs @@ -1687,6 +1687,18 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Returns whether the window is floating mode or not. + /// + /// True if the window is enabled floating mode, false otherwise. + [EditorBrowsable(EditorBrowsableState.Never)] + public bool IsFloatingModeEnabled() + { + bool ret = Interop.Window.IsFloatingModeEnabled(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + /// /// Requests to display server for the window is moved by display server. /// It can be work with setting window floating mode.