[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_KeyboardFocusManager_GetNearestFocusableActor")]
public static extern global::System.IntPtr GetNearestFocusableActor(global::System.Runtime.InteropServices.HandleRef rootView, global::System.Runtime.InteropServices.HandleRef currentView, int direction);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_KeyboardFocusManager_SetFocusFinderRootActor")]
+ public static extern void SetFocusFinderRootView(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [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_SWIGUpcast")]
public static extern global::System.IntPtr Upcast(global::System.IntPtr jarg1);
}
return ret;
}
+ /// <summary>
+ /// Sets the root view to start moving focus when DefaultAlgorithm is enabled.
+ /// This will only look for focusable Views within that View tree when looking for the next focus.
+ /// </summary>
+ /// <param name="rootView">The root view in which to find the next focusable view.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFocusFinderRootView(View rootView)
+ {
+ Interop.FocusManager.SetFocusFinderRootView(SwigCPtr, View.getCPtr(rootView));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Reset the root view that starts moving focus when DefaultAlgorithm is enabled.
+ /// When reset, the window becomes root.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void ResetFocusFinderRootView()
+ {
+ Interop.FocusManager.ResetFocusFinderRootView(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
internal static FocusManager Get()
{
FocusManager ret = new FocusManager(Interop.FocusManager.Get(), true);