Function libnotcurses_sys::ncplane_reparent[][src]

pub unsafe extern "C" fn ncplane_reparent(
    n: *mut ncplane,
    newparent: *mut ncplane
) -> *mut ncplane
Expand description

Plane ‘n’ will be unbound from its parent plane, and will be made a bound child of ‘newparent’. It is an error if ‘n’ or ‘newparent’ are NULL. If ‘newparent’ is equal to ‘n’, ‘n’ becomes the root of a new pile, unless ‘n’ is already the root of a pile, in which case this is a no-op. Returns ‘n’. The standard plane cannot be reparented. Any planes bound to ‘n’ are reparented to the previous parent of ‘n’.