mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Widget.cxx
Fl_Widget::~Fl_Widget() {
  Fl::clear_widget_pointer(this);
  if (flags() & COPIED_LABEL) free((void *)(label_.value));
  // remove from parent group
  if (parent_) parent_->remove(this);
#ifdef DEBUG_DELETE
  if (parent_) { // this should never happen
    printf("*** Fl_Widget: parent_->remove(this) failed [%p,%p]\n",parent_,this);
  }
#endif // DEBUG_DELETE
  parent_ = 0; // Don't throw focus to a parent widget.
  fl_throw_focus(this);
  // remove stale entries from default callback queue (Fl::readqueue())
  if (callback_ == default_callback) cleanup_readqueue(this);
}
/**
   Destroys the widget, taking care of throwing focus before if any.
   Destruction removes the widget from any parent group! And groups when
   destroyed destroy all their children. This is convenient and fast.
*/
Destroys the widget, taking care of throwing focus before if any.
Destruction removes the widget from any parent group. And groups when
destroyed destroy all their children. This is convenient and fast.
Destroys the widget taking care of throwing focus before if any . Destruction removes the widget from any parent group . And groups when destroyed destroy all their children . This is convenient and fast .
Fl_Widget::~Fl_Widget() {
  Fl::clear_widget_pointer(this);
  if (flags() & COPIED_LABEL) free((void *)(label_.value));
  if (parent_) parent_->remove(this);
#ifdef DEBUG_DELETE
  if (parent_) { 
    printf("*** Fl_Widget: parent_->remove(this) failed [%p,%p]\n",parent_,this);
  }
#endif 
  parent_ = 0; 
  fl_throw_focus(this);
  if (callback_ == default_callback) cleanup_readqueue(this);
}
Fl_Widget :: ~ Fl_Widget ( ) { Fl :: clear_widget_pointer ( this ) ; if ( flags ( ) & COPIED_LABEL ) free ( ( void * ) ( label_ . value ) ) ; if ( parent_ ) parent_ -> remove ( this ) ; #ifdef DEBUG_DELETE if ( parent_ ) { printf ( " \n " , parent_ , this ) ; } #endif parent_ = 0 ; fl_throw_focus ( this ) ; if ( callback_ == default_callback ) cleanup_readqueue ( this ) ; }
Destroys the widget, taking care of throwing focus before if any.
Destroys the widget taking care of throwing focus before if any .
// remove from parent group // this should never happen // DEBUG_DELETE // Don't throw focus to a parent widget. // remove stale entries from default callback queue (Fl::readqueue())