public static ToolBarTree FlexibleSpace(this ToolBarTree t, Func <bool> canshow = null) { ToolBarFlexibleSpace sp = new ToolBarFlexibleSpace(canshow); t.DockNode(sp); return(t); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }