natiny_view_get_parent

C
NatinyView natiny_view_get_parent(NatinyView view);

Returns the view this one is a child of.

Parameters

Name Type Description
view NatinyView View handle

Returns

Type Description
NatinyView Parent view handle, or 0 for a view with no parent or an invalid handle

Example

C
if (natiny_view_get_parent(panel) == 0) {
    natiny_view_set_parent(panel, root);
}