private static float GetItemWidth(EditorToolbarItem item)
        {
            float itemWidth = item.GetItemWidth();

            if (item.GetType() == typeof(EditorToolbarButton) && itemWidth < Styles.STAND_BUTTON_WIDTH)
            {
                itemWidth = Styles.STAND_BUTTON_WIDTH;
            }
            return(itemWidth);
        }
 public static void AddItem(EditorToolbarItem item, EditorToolbarOrientation orientation)
 {
     if (orientation == EditorToolbarOrientation.Left)
     {
         leftGroups.Add(EditorToolbarGroup.CreateGroup(item));
     }
     else if (orientation == EditorToolbarOrientation.Right)
     {
         rightGroups.Add(EditorToolbarGroup.CreateGroup(item));
     }
 }
        internal static EditorToolbarGroup CreateGroup(EditorToolbarItem item)
        {
            if (item == null)
            {
                return(null);
            }

            if (item.GetType() == typeof(EditorToolbarButton))
            {
                return(new EditorToolbarGroup(new EditorToolbarButton[] { item as EditorToolbarButton }));
            }
            else if (item.GetType() == typeof(EditorToolbarToggleButton))
            {
                return(new EditorToolbarGroup(new EditorToolbarToggleButton[] { item as EditorToolbarToggleButton }));
            }

            return(null);
        }
 public static void RemoveItem(EditorToolbarItem item, EditorToolbarOrientation orientation)
 {
 }