sdlGetDisplayForWindow function
Get the display associated with a window.
\param window the window to query. \returns the instance ID of the display containing the center of the window on success or 0 on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_GetDisplayBounds \sa SDL_GetDisplays
extern SDL_DECLSPEC SDL_DisplayID SDLCALL SDL_GetDisplayForWindow(SDL_Window *window)
Implementation
int sdlGetDisplayForWindow(Pointer<SdlWindow> window) {
final sdlGetDisplayForWindowLookupFunction = libSdl3.lookupFunction<
Uint32 Function(Pointer<SdlWindow> window),
int Function(Pointer<SdlWindow> window)>('SDL_GetDisplayForWindow');
return sdlGetDisplayForWindowLookupFunction(window);
}