/// <summary> /// Inserts a control at a specific location /// </summary> /// <param name="index"></param> /// <param name="control"></param> public void Insert(int index, GUIControl control) { mControls.Insert(index, control); NotifyControlAdded(control); }
/// <summary> /// Adds a control to this group /// </summary> /// <param name="control"></param> public void Add(GUIControl control) { mControls.Add(control); NotifyControlAdded(control); }
/// <summary> /// Returns the index of a provided control in this collection. /// </summary> /// <param name="control"></param> /// <returns></returns> public int IndexOf(GUIControl control) { return(mControls.IndexOf(control)); }
/// <summary> /// Adds a control to the sceneView /// </summary> /// <param name="control"></param> public void AddControl(GUIControl parent, GUIControl control) { AddControl(parent, control, -1); }
/// <summary> /// Called when a control is removed from the sceneView's collection /// </summary> /// <param name="sender"></param> /// <param name="control"></param> void Controls_OnControlRemoved(object sender, GUIControl control) { }
/// <summary> /// Called when a control is added to the sceneView's collection /// </summary> /// <param name="sender"></param> /// <param name="control"></param> void Controls_OnControlAdded(object sender, GUIControl control) { control.Parent = this; }