コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <summary>
 /// Adds a control to this group
 /// </summary>
 /// <param name="control"></param>
 public void Add(GUIControl control)
 {
     mControls.Add(control);
     NotifyControlAdded(control);
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <summary>
 /// Adds a control to the sceneView
 /// </summary>
 /// <param name="control"></param>
 public void AddControl(GUIControl parent, GUIControl control)
 {
     AddControl(parent, control, -1);
 }
コード例 #5
0
 /// <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)
 {
 }
コード例 #6
0
 /// <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;
 }