[NUI] Binding IsFloatingModeEnabled()
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 10 Jul 2023 05:45:56 +0000 (14:45 +0900)
committerhuiyu <35286162+huiyueun@users.noreply.github.com>
Tue, 11 Jul 2023 05:46:11 +0000 (14:46 +0900)
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/

src/Tizen.NUI/src/internal/Interop/Interop.Window.cs
src/Tizen.NUI/src/public/Window/Window.cs

index 26cf90f..644cbe2 100755 (executable)
@@ -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);
 
index 96e2950..ccfa9c3 100755 (executable)
@@ -1688,6 +1688,18 @@ namespace Tizen.NUI
         }
 
         /// <summary>
+        /// Returns whether the window is floating mode or not.
+        /// </summary>
+        /// <returns>True if the window is enabled floating mode, false otherwise.</returns>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool IsFloatingModeEnabled()
+        {
+            bool ret = Interop.Window.IsFloatingModeEnabled(SwigCPtr);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
+        /// <summary>
         /// Requests to display server for the window is moved by display server.
         /// It can be work with setting window floating mode.
         /// </summary>