Example #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);
     }
 }
Example #2
0
 public void Remove(GUIElement elem)
 {
     children.Remove(elem);
 }
Example #3
0
 public void Add(GUIElement elem)
 {
     children.Add(elem);
     elem.Move(this);
 }