sdlSetWindowPosition function
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
extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_Window * window, int x, int y)
Implementation
void sdlSetWindowPosition(Pointer<SdlWindow> window, int x, int y) {
final sdlSetWindowPositionLookupFunction = libSdl2.lookupFunction<
Void Function(Pointer<SdlWindow> window, Int32 x, Int32 y),
void Function(
Pointer<SdlWindow> window, int x, int y)>('SDL_SetWindowPosition');
return sdlSetWindowPositionLookupFunction(window, x, y);
}