natiny_view_set_parent
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
natiny_view_set_parent(button, toolbar);
/* bring a window to the front of its siblings */
natiny_view_set_parent(window, desktop);