[][src]Function sdl2_sys::SDL_SetWindowSize

pub unsafe extern "C" fn SDL_SetWindowSize(
    window: *mut SDL_Window,
    w: c_int,
    h: c_int
)

\brief Set the size of a window's client area.

\param window The window to resize. \param w The width of the window, in screen coordinates. Must be >0. \param h The height of the window, in screen coordinates. Must be >0.

\note Fullscreen windows automatically match the size of the display mode, and you should use SDL_SetWindowDisplayMode() to change their size.

The window size in screen coordinates may differ from the size in pixels, if the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or SDL_GetRendererOutputSize() to get the real client area size in pixels.

\sa SDL_GetWindowSize() \sa SDL_SetWindowDisplayMode()