Name
Constraint destroy — Constraint method for cleaning up after a child is destroyed.
Synopsis
typedef void (∗XtWidgetProc)(Widget);
Widget w;
Arguments
wSpecifies the widget.
Description
The Constraint destroy method of a Constraint parent is called when one of the children is destroyed. This method cleans up instance structure fields that may have been set to keep track of the status of the deleted child.
The Constraint destroy methods are called in subclass-to-superclass order, starting at the widget’s parent and ending at ConstraintWidgetClass. Therefore, a parent’s Constraint destroy method should deallocate only storage that is specific to the Constraint subclass and not the storage allocated by any of its superclasses.
If a parent does not need to deallocate any constraint storage, the Constraint destroy method entry in its class record can be NULL.