Function SDL_SetWindowPosition
pub unsafe extern "C" fn SDL_SetWindowPosition(
window: *mut SDL_Window,
x: i32,
y: i32,
)
Available on crate feature
dep_sdl2
only.Expand description
Set the position of a window.
The window coordinate origin is the upper left of the display.
\param window the window to reposition
\param x the x coordinate of the window in screen coordinates, or
SDL_WINDOWPOS_CENTERED
or SDL_WINDOWPOS_UNDEFINED
\param y the y coordinate of the window in screen coordinates, or
SDL_WINDOWPOS_CENTERED
or SDL_WINDOWPOS_UNDEFINED
\since This function is available since SDL 2.0.0.
\sa SDL_GetWindowPosition