sdlGetWindowParent function
Get parent of a window.
\param window the window to query. \returns the parent of the window on success or NULL if the window has no parent.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_CreatePopupWindow
extern SDL_DECLSPEC SDL_Window * SDLCALL SDL_GetWindowParent(SDL_Window *window)
Implementation
Pointer<SdlWindow> sdlGetWindowParent(Pointer<SdlWindow> window) {
final sdlGetWindowParentLookupFunction = libSdl3.lookupFunction<
Pointer<SdlWindow> Function(Pointer<SdlWindow> window),
Pointer<SdlWindow> Function(
Pointer<SdlWindow> window)>('SDL_GetWindowParent');
return sdlGetWindowParentLookupFunction(window);
}