public SelectionGrid Add(BindableContent <SelectionGrid> content) { buttons.Add(content); // GUILayout.SelectionGrid requires an array of GUIContent buttonContents = buttons.Select(x => x.Content()).ToArray(); return(this); }
public SelectionGrid Remove(BindableContent <SelectionGrid> content) { buttons.Remove(content); buttonContents = buttons.Select(x => x.Content()).ToArray(); return(this); }
public TSelf Content(GUIContent content) { this.content = new BindableContent <TSelf>(this as TSelf, content); return(this as TSelf); }
/// <summary> /// Initializes a new instance of the <see cref="ContentControl<TSelf>"/> class. /// </summary> protected ContentControl() : base() { content = new BindableContent <TSelf>(this as TSelf); tooltip = new Tooltip <TSelf>(this as TSelf); }