natiny_view_destroy
void natiny_view_destroy(NatinyView view);
Destroys a view together with every view below it, and makes their handles invalid.
Parameters
| Name | Type | Description |
|---|---|---|
view |
NatinyView |
View handle from natiny_view_create |
Example
natiny_view_destroy(dialog);
dialog = 0;
Notes
NATINY_VIEW_HOOK_DESTROYis called on the view first and then on each descendant, parents before children, while all of them can still be read. It is the place to free whatever the hooks'userdatapoints at.