From cd5f8b2221c00c63afe6c52cecdb5311293abbb6 Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Wed, 23 Aug 2023 18:22:54 +0900 Subject: [PATCH] [NUI] Binding CursorVisibleSet 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 | 3 +++ src/Tizen.NUI/src/public/Window/Window.cs | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs index 637205c..3b3714f 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs @@ -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); } } } diff --git a/src/Tizen.NUI/src/public/Window/Window.cs b/src/Tizen.NUI/src/public/Window/Window.cs index 2cd8307..3a60ec5 100755 --- a/src/Tizen.NUI/src/public/Window/Window.cs +++ b/src/Tizen.NUI/src/public/Window/Window.cs @@ -1881,6 +1881,18 @@ namespace Tizen.NUI } /// + /// Sets visibility on/off of cursor + /// + /// The visibility of cursor. + [EditorBrowsable(EditorBrowsableState.Never)] + public void CursorVisibleSet(bool visible) + { + Interop.Window.CursorVisibleSet(SwigCPtr, visible); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + + /// /// 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. -- 2.7.4