void Dump(IWidgetSurface w, int ind) { if (w == null) { return; } Console.WriteLine(new string (' ', ind * 2) + " " + w.GetType().Name + " " + w.GetPreferredWidth() + " " + w.GetPreferredHeight()); foreach (var c in w.Children) { Dump(c, ind + 1); } }
void Dump(IWidgetSurface w, int ind) { if (w == null) return; Console.WriteLine (new string (' ', ind * 2) + " " + w.GetType ().Name + " " + w.GetPreferredWidth () + " " + w.GetPreferredHeight ()); foreach (var c in w.Children) Dump (c, ind + 1); }