Function sdl2_sys::SDL_GetRectDisplayIndex
source ยท pub unsafe extern "C" fn SDL_GetRectDisplayIndex(
rect: *const SDL_Rect,
) -> c_int
Expand description
Get the index of the display primarily containing a rect
\param rect the rect to query \returns the index of the display entirely containing the rect or closest to the center of the rect on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.24.0.
\sa SDL_GetDisplayBounds \sa SDL_GetNumVideoDisplays