Пример #1
0
 public void SetChild(UI_Element child)
 {
     _child = child;
     if (_child != null)
     {
         _child.parent = this;
     }
 }
Пример #2
0
 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>();
 }
Пример #3
0
 public UI_MultiElement(Pos pos, Point size, UI_Element parent, Color bgc) : base(pos, size, parent)
 {
     ui_elements = new List <T>();
 }
Пример #4
0
 public void SetParent(UI_Element parent)
 {
     _parent = parent;
     pos.SetParentIfNotAlreadySet(parent);
 }