380 {
381 if ( !w )
382 {
383 return;
384 }
385
387
388 string tmp;
389 for (int i = 0; i < tabs; i++)
390 {
391 tmp += " ";
392 }
393
394 string invisible = "";
395
396 if ( !w.IsVisibleHierarchy() )
397 {
398 invisible = "[invisible]";
400 }
401
402 Print( tmp +
"- "+ w.GetName() +
" ("+ w.GetTypeName() +
") "+ invisible );
403
404 bool collapse = false;
405 if ( w.GetChildren() )
406 {
407 collapse = true;
409 }
410
412
413 if ( collapse )
414 {
416 }
417
419 }
void DumpWidget(Widget w, int tabs)
proto void Print(void var)
Prints content of variable to console/log.