natiny_view_destroy

C
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

C
natiny_view_destroy(dialog);
dialog = 0;

Notes

  • NATINY_VIEW_HOOK_DESTROY is 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' userdata points at.