Пример #1
0
        public void AddItem(UiElement item)
        {
            item.isActive = isChecked;
            item.x        = indent;
            item.y        = items + 1;

            AddChild(item);

            var deco = AddChild(new TextLine(decoration));

            deco.height = 0;
            deco.x      = indent - 2;
            deco.y      = item.y;

            items++;
        }
Пример #2
0
 public void RemoveChild(UiElement c)
 {
     c.parent = null;
     children.Remove(c);
 }
Пример #3
0
 public UiElement AddChild(UiElement c)
 {
     children.Add(c);
     c.parent = this;
     return(c);
 }