mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Tree_Item.cxx
void Fl_Tree_Item::show_self(const char *indent) const {
  if ( label() ) {
    printf("%s-%s (%d children, this=%p, parent=%p depth=%d)\n",
           indent,label(),children(),(void*)this, (void*)_parent, depth());
  }
  if ( children() ) {
    char *i2 = (char*)malloc(strlen(indent) + 2);
    strcpy(i2, indent);
    strcat(i2, " |");
    for ( int t=0; t<children(); t++ ) {
      child(t)->show_self(i2);
    }
  }
  fflush(stdout);
}
/// Print the tree as 'ascii art' to stdout.
/// Used mainly for debugging.
///
Print the tree as 'ascii art' to stdout.
Used mainly for debugging.
Print the tree as ' ascii art ' to stdout . Used mainly for debugging .
void Fl_Tree_Item::show_self(const char *indent) const {
  if ( label() ) {
    printf("%s-%s (%d children, this=%p, parent=%p depth=%d)\n",
           indent,label(),children(),(void*)this, (void*)_parent, depth());
  }
  if ( children() ) {
    char *i2 = (char*)malloc(strlen(indent) + 2);
    strcpy(i2, indent);
    strcat(i2, " |");
    for ( int t=0; t<children(); t++ ) {
      child(t)->show_self(i2);
    }
  }
  fflush(stdout);
}
void Fl_Tree_Item :: show_self ( const char * indent ) const { if ( label ( ) ) { printf ( " \n " , indent , label ( ) , children ( ) , ( void * ) this , ( void * ) _parent , depth ( ) ) ; } if ( children ( ) ) { char * i2 = ( char * ) malloc ( strlen ( indent ) + 2 ) ; strcpy ( i2 , indent ) ; strcat ( i2 , " " ) ; for ( int t = 0 ; t < children ( ) ; t ++ ) { child ( t ) -> show_self ( i2 ) ; } } fflush ( stdout ) ; }
Print the tree as 'ascii art' to stdout.
Print the tree as ' ascii art ' to stdout .