public void SetChild(UI_Element child) { _child = child; if (_child != null) { _child.parent = this; } }
public UI_Element(Pos pos, Point size, UI_Element parent) { this.pos = pos; this.size = size; this.parent = parent; this.pos.ego = this; UpdateFunctions = new List <Action>(); DrawFunctions = new List <Action>(); }
public UI_MultiElement(Pos pos, Point size, UI_Element parent, Color bgc) : base(pos, size, parent) { ui_elements = new List <T>(); }
public void SetParent(UI_Element parent) { _parent = parent; pos.SetParentIfNotAlreadySet(parent); }