public CToolBarCheckbox AddCheckbox(string title, CToggleButtonDelegate buttonDelegate) { CToolBarCheckbox button = new CToolBarCheckbox(title, buttonDelegate); AddSubview(button); return(button); }
public CToolBarToggle AddToggle(string title, CToggleButtonDelegate buttonDelegate) { CToolBarToggle button = new CToolBarToggle(title, buttonDelegate); AddSubview(button); return(button); }
public CToggleButton(string title = "", CToggleButtonDelegate buttonDelegate = null) : base(title) { ButtonDelegate = buttonDelegate; }
public CToolBarCheckbox(string title, CToggleButtonDelegate buttonDelegate) : base(title, buttonDelegate) { Width = CSharedStyles.MeasureWidth(GUI.skin.toggle, title); }
public CToolBarToggle(string title, CToggleButtonDelegate buttonDelegate) : base(title, buttonDelegate) { Width = CSharedStyles.MeasureWidth(CSharedStyles.toolbarButton, title); }