Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ConstraintA(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Composite(3)

Constraint(3)

Core(3)

 

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. 

See Also

Composite(3), Constraint(3), Core(3). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026