internal static unsafe void Invoke(IntPtr obj, EUINavigation Direction, EUINavigationRule Rule, Name WidgetToFocus) { long *p = stackalloc long[] { 0L, 0L, 0L }; byte *b = (byte *)p; *(b + 0) = (byte)Direction; *(b + 1) = (byte)Rule; *((Name *)(b + 4)) = WidgetToFocus; Main.GetProcessEvent(obj, SetNavigationRule_ptr, new IntPtr(p));; } }
///<summary>Sets the widget navigation rules for a specific direction.</summary> ///<remarks> ///This can only be called on widgets that are in a widget tree. ///@param Direction ///@param Rule The rule to use when navigation is taking place ///@param WidgetToFocus When using the Explicit rule, focus on this widget ///</remarks> public void SetNavigationRule(EUINavigation Direction, EUINavigationRule Rule, Name WidgetToFocus) => Widget_methods.SetNavigationRule_method.Invoke(ObjPointer, Direction, Rule, WidgetToFocus);