Function sdl2_sys::SDL_GetDisplayBounds
source ยท pub unsafe extern "C" fn SDL_GetDisplayBounds(
displayIndex: c_int,
rect: *mut SDL_Rect,
) -> c_int
Expand description
Get the desktop area represented by a display.
The primary display (displayIndex
zero) is always located at 0,0.
\param displayIndex the index of the display to query \param rect the SDL_Rect structure filled in with the display bounds \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_GetNumVideoDisplays