ResetCursor() public method

public ResetCursor ( ) : void
return void
Example #1
0
            public void DoWindow(int windowID)
            {
                GUILayoutGroup g = GUILayoutUtility.current.topLevel;

                switch (Event.current.type)
                {
                case EventType.Layout:
                    // TODO: Add layoutoptions
                    // TODO: Take titlebar size into consideration
                    g.resetCoords = true;
                    g.rect        = m_ScreenRect;
                    if (m_Options != null)
                    {
                        g.ApplyOptions(m_Options);
                    }
                    g.isWindow = true;
                    g.windowID = windowID;
                    g.style    = m_Style;
                    break;

                default:
                    g.ResetCursor();
                    break;
                }
                m_Func(windowID);
            }
Example #2
0
            public void DoWindow(int windowID)
            {
                GUILayoutGroup topLevel  = GUILayoutUtility.current.topLevel;
                EventType      type      = Event.current.type;
                EventType      eventType = type;

                if (eventType != EventType.Layout)
                {
                    topLevel.ResetCursor();
                }
                else
                {
                    topLevel.resetCoords = true;
                    topLevel.rect        = this.m_ScreenRect;
                    bool flag = this.m_Options != null;
                    if (flag)
                    {
                        topLevel.ApplyOptions(this.m_Options);
                    }
                    topLevel.isWindow = true;
                    topLevel.windowID = windowID;
                    topLevel.style    = this.m_Style;
                }
                this.m_Func(windowID);
            }
Example #3
0
 internal static void LayoutFreeGroup(GUILayoutGroup toplevel)
 {
     foreach (GUILayoutGroup entry in toplevel.entries)
     {
         LayoutSingleGroup(entry);
     }
     toplevel.ResetCursor();
 }
 public void ResetCursor()
 {
     windows.ResetCursor();
     topLevel.ResetCursor();
     foreach (var l in layoutGroups)
     {
         ((GUILayoutGroup)l).ResetCursor();
     }
 }
Example #5
0
 internal static void LayoutFreeGroup(GUILayoutGroup toplevel)
 {
     foreach (GUILayoutEntry guilayoutEntry in toplevel.entries)
     {
         GUILayoutGroup i = (GUILayoutGroup)guilayoutEntry;
         GUILayoutUtility.LayoutSingleGroup(i);
     }
     toplevel.ResetCursor();
 }
 internal static void LayoutFreeGroup(GUILayoutGroup toplevel)
 {
     using (List <GUILayoutEntry> .Enumerator enumerator = toplevel.entries.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             GUILayoutUtility.LayoutSingleGroup((GUILayoutGroup)enumerator.Current);
         }
     }
     toplevel.ResetCursor();
 }
 internal static void LayoutFreeGroup(GUILayoutGroup toplevel)
 {
     foreach (GUILayoutGroup group in toplevel.entries)
     {
         LayoutSingleGroup(group);
     }
     toplevel.ResetCursor();
 }
 internal static void LayoutFreeGroup(GUILayoutGroup toplevel)
 {
   using (List<GUILayoutEntry>.Enumerator enumerator = toplevel.entries.GetEnumerator())
   {
     while (enumerator.MoveNext())
       GUILayoutUtility.LayoutSingleGroup((GUILayoutGroup) enumerator.Current);
   }
   toplevel.ResetCursor();
 }