natiny_view_set_parent

C
void natiny_view_set_parent(NatinyView child, NatinyView parent);

Appends a view to the children of another, or detaches it.

Parameters

Name Type Description
child NatinyView View to move
parent NatinyView New parent, or 0 to detach

Example

C
natiny_view_set_parent(button, toolbar);

/* bring a window to the front of its siblings */
natiny_view_set_parent(window, desktop);