Beispiel #1
0
        public static ToolBarTree FlexibleSpace(this ToolBarTree t, Func <bool> canshow = null)
        {
            ToolBarFlexibleSpace sp = new ToolBarFlexibleSpace(canshow);

            t.DockNode(sp);
            return(t);
        }
Beispiel #2
0
        public static ToolBarTree Space(this ToolBarTree t, int width = 100, Func <bool> canshow = null)
        {
            ToolBarSpace sp = new ToolBarSpace(width, canshow);

            t.DockNode(sp);
            return(t);
        }
Beispiel #3
0
        public static ToolBarTree Delegate(this ToolBarTree t, Action <Rect> panDel, int width = 100, Func <bool> canshow = null)
        {
            DelegateLabel sp = new DelegateLabel(panDel, width, canshow);

            t.DockNode(sp);
            return(t);
        }
Beispiel #4
0
        public static ToolBarTree ToolTip(this ToolBarTree t, GUIContent content, int width = 100, Func <bool> canshow = null)
        {
            ToolBarToolTip la = new ToolBarToolTip(content, width, canshow);

            t.DockNode(la);
            return(t);
        }
Beispiel #5
0
        public static ToolBarTree SearchField(this ToolBarTree t, Action <string> onValueChange, string value, int width = 100, Func <bool> canshow = null)
        {
            ToolBarSearchField tog = new ToolBarSearchField(onValueChange, value, width, canshow);

            t.DockNode(tog);
            return(t);
        }
Beispiel #6
0
        public static ToolBarTree Toggle(this ToolBarTree t, GUIContent content, Action <bool> onValueChange, bool value = false, int width = 100, Func <bool> canshow = null)
        {
            ToolBarToggle tog = new ToolBarToggle(content, onValueChange, value, width, canshow);

            t.DockNode(tog);
            return(t);
        }
Beispiel #7
0
        public static ToolBarTree DropDownButton(this ToolBarTree t, GUIContent content, Action <Rect> onClick, int width = 100, Func <bool> canshow = null)
        {
            ToolBarDropDownButton btn = new ToolBarDropDownButton(content, onClick, width, canshow);

            t.DockNode(btn);
            return(t);
        }
Beispiel #8
0
        public static ToolBarTree Popup(this ToolBarTree t, Action <int> onValueChange, string[] ops, int value = 0, int width = 100, Func <bool> canshow = null)
        {
            ToolBarPopup btn = new ToolBarPopup(onValueChange, ops, value, width, canshow);

            t.DockNode(btn);
            return(t);
        }