SDL_GetDisplayForRect

Get the display primarily containing a rect.

extern (C) nothrow @nogc extern
SDL_GetDisplayForRect
(
const(SDL_Rect)* rect
)

Parameters

rect const(SDL_Rect)*

the rect to query.

Return Value

the instance ID of the display entirely containing the rect or closest to the center of the rect 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