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