public override void Draw(Window window) { for (int i = 0; i < children.Count; i++) { if (strategy != null) strategy.Compose(children[i], window); else children[i].Draw(window); if (i < (children.Count - 1)) window.DrawText(", "); } foreach (Glyph item in children) { } }
public override void Draw(Window window) { window.DrawText("Circle"); ; }
public override void Draw(Window window) { window.DrawText("MacButton"); }
public void Compose(Glyph item, Window window) { window.DrawText("["); item.Draw(window); window.DrawText("]"); }
public override void Draw(Window window) { window.DrawText("Rectangle"); }