401 {
402 if ( !w )
403 {
404 return;
405 }
406
408
409 string tmp;
410 for (int i = 0; i < tabs; i++)
411 {
412 tmp += " ";
413 }
414
415 string invisible = "";
416
417 if ( !w.IsVisibleHierarchy() )
418 {
419 invisible = "[invisible]";
421 }
422
423 Print( tmp +
"- "+ w.GetName() +
" ("+ w.GetTypeName() +
") "+ invisible );
424
425 bool collapse = false;
426 if ( w.GetChildren() )
427 {
428 collapse = true;
430 }
431
433
434 if ( collapse )
435 {
437 }
438
440 }
void DumpWidget(Widget w, int tabs)
proto void Print(void var)
Prints content of variable to console/log.