Exemple #1
0
 public void Move(GUIElement parent)
 {
     pos.X = parent.pos.X + this.offset.X;
     pos.Y = parent.pos.Y + this.offset.Y;
     foreach (GUIElement child in children)
     {
         Move(this);
     }
 }
Exemple #2
0
 public void Remove(GUIElement elem)
 {
     children.Remove(elem);
 }
Exemple #3
0
 public void Add(GUIElement elem)
 {
     children.Add(elem);
     elem.Move(this);
 }