[Previous] [Contents] [Index] [Next]

PtDestroyWidget()

Remove a widget from the widget family hierarchy

Synopsis:

int PtDestroyWidget( PtWidget_t *widget );

Library:

ph

Description:

This function performs the following on the specified widget:

The widget's resources aren't freed until the return of PtEventHandler().

Returns:

0
Success.
-1
An error occurred.

Examples:

See PtWidgetChildBack().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtEventHandler(), PtCreateWidget(), PtRealizeWidget(), PtUnrealizeWidget()

"Widget life cycle" in the Introduction to the Photon Programmer's Guide


[Previous] [Contents] [Index] [Next]