Function sdl2_sys::SDL_SetWindowPosition

source ยท
pub unsafe extern "C" fn SDL_SetWindowPosition(
    window: *mut SDL_Window,
    x: c_int,
    y: c_int,
)
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