Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
 }