From 3c2ffc6b55f198e038217e81ecfe13a5cd8e384b Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Mon, 10 Jul 2023 14:45:56 +0900 Subject: [PATCH] [NUI] Binding IsFloatingModeEnabled() refer : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/295565/ https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/295566/ --- src/Tizen.NUI/src/internal/Interop/Interop.Window.cs | 4 ++++ src/Tizen.NUI/src/public/Window/Window.cs | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs index d7b9acf..13b55cf 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs @@ -266,6 +266,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 f844968..604810c 100755 --- a/src/Tizen.NUI/src/public/Window/Window.cs +++ b/src/Tizen.NUI/src/public/Window/Window.cs @@ -1599,6 +1599,18 @@ namespace Tizen.NUI } /// + /// 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. /// -- 2.7.4