[NUI] Binding CursorVisibleSet
authorjoogab.yun <joogab.yun@samsung.com>
Wed, 23 Aug 2023 09:22:54 +0000 (18:22 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 29 Aug 2023 09:52:04 +0000 (18:52 +0900)
Sets visibility on/off of cursor

https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/297714/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/297715/

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

index 637205c..3b3714f 100755 (executable)
@@ -376,6 +376,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_PointerWarp")]
             [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
             public static extern bool PointerWarp(global::System.Runtime.InteropServices.HandleRef window, int x, int y);
+
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_CursorVisibleSet")]
+            public static extern void CursorVisibleSet(global::System.Runtime.InteropServices.HandleRef window, bool visible);
         }
     }
 }
index 2cd8307..3a60ec5 100755 (executable)
@@ -1881,6 +1881,18 @@ namespace Tizen.NUI
         }
 
         /// <summary>
+        /// Sets visibility on/off of cursor
+        /// </summary>
+        /// <param name="visible">The visibility of cursor.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void CursorVisibleSet(bool visible)
+        {
+            Interop.Window.CursorVisibleSet(SwigCPtr, visible);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
+
+        /// <summary>
         /// Maximizes window's size.
         /// If this function is called with true, window will be resized with screen size.
         /// Otherwise window will be resized with previous size.