public void RemoveChild(UIWidget child) { child.parent = null; children.Remove(child); }
public void AddChild(UIWidget child) { child.parent = this; children.Add(child); }