From: joogab.yun Date: Wed, 3 May 2023 05:17:00 +0000 (+0900) Subject: [NUI] Binding EnableFocusIndicator and IsFocusIndicatorEnabled X-Git-Tag: accepted/tizen/unified/20231205.024657~325 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25f2a9dd7f910ca5ca6303ffed1060afb59d5e4e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Binding EnableFocusIndicator and IsFocusIndicatorEnabled refer : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/292280/ --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.FocusManager.cs b/src/Tizen.NUI/src/internal/Interop/Interop.FocusManager.cs index f13184c..b184d81 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.FocusManager.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.FocusManager.cs @@ -102,6 +102,13 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_KeyboardFocusManager_ResetFocusFinderRootActor")] public static extern void ResetFocusFinderRootView(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_KeyboardFocusManager_EnableFocusIndicator")] + public static extern void EnableFocusIndicator(global::System.Runtime.InteropServices.HandleRef focusManager, bool enable); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_KeyboardFocusManager_IsFocusIndicatorEnabled")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] + public static extern bool IsFocusIndicatorEnabled(global::System.Runtime.InteropServices.HandleRef focusManager); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_KeyboardFocusManager_SWIGUpcast")] public static extern global::System.IntPtr Upcast(global::System.IntPtr jarg1); } diff --git a/src/Tizen.NUI/src/public/Input/FocusManager.cs b/src/Tizen.NUI/src/public/Input/FocusManager.cs index ed2a92f..d43f75b 100755 --- a/src/Tizen.NUI/src/public/Input/FocusManager.cs +++ b/src/Tizen.NUI/src/public/Input/FocusManager.cs @@ -543,6 +543,29 @@ namespace Tizen.NUI } /// + /// Decide using focus indicator or not + /// + /// Whether using focus indicator or not + [EditorBrowsable(EditorBrowsableState.Never)] + public void EnableFocusIndicator(bool enable) + { + Interop.FocusManager.EnableFocusIndicator(SwigCPtr, enable); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Check focus indicator is enabled or not + /// + /// Whether focus indicator is enabled + [EditorBrowsable(EditorBrowsableState.Never)] + public bool IsFocusIndicatorEnabled() + { + bool ret = Interop.FocusManager.IsFocusIndicatorEnabled(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// /// Get a default focus indicator /// ///