Function SDL_GetWindowParent

pub unsafe extern "C" fn SDL_GetWindowParent(
    window: *mut SDL_Window,
) -> *mut SDL_Window
Available on crate feature dep_sdl3 only.
Expand description

Get parent of a window.

§Parameters

  • window: the window to query.

§Return value

Returns the parent of the window on success or NULL if the window has no parent.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.

§See also