Function SDL_GetDisplayBounds

pub unsafe extern "C" fn SDL_GetDisplayBounds(
    displayIndex: i32,
    rect: *mut SDL_Rect,
) -> i32
Available on crate feature dep_sdl2 only.
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