SDL_GetDisplayForWindow

Get the display associated with a window.

extern (C) nothrow @nogc extern
SDL_GetDisplayForWindow

Parameters

window SDL_Window*

the window to query.

Return Value

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.

See Also

Meta