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++; }
public void RemoveChild(UiElement c) { c.parent = null; children.Remove(c); }
public UiElement AddChild(UiElement c) { children.Add(c); c.parent = this; return(c); }