Function SDL_GetWindowPosition

pub unsafe extern "C" fn SDL_GetWindowPosition(
    window: *mut SDL_Window,
    x: *mut i32,
    y: *mut i32,
)
Available on crate feature dep_sdl2 only.
Expand description

Get the position of a window.

If you do not need the value for one of the positions a NULL may be passed in the x or y parameter.

\param window the window to query \param x a pointer filled in with the x position of the window, in screen coordinates, may be NULL \param y a pointer filled in with the y position of the window, in screen coordinates, may be NULL

\since This function is available since SDL 2.0.0.

\sa SDL_SetWindowPosition