SDL_GetDisplayBounds

Get the desktop area represented by a display.

The primary display is often located at (0,0), but may be placed at a different location depending on monitor layout.

extern (C) nothrow @nogc extern
bool
SDL_GetDisplayBounds

Parameters

displayID SDL_DisplayID

the instance ID of the display to query.

rect SDL_Rect*

the SDL_Rect structure filled in with the display bounds.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta