sdlGetWindowPosition function

void sdlGetWindowPosition(
  1. Pointer<SdlWindow> window,
  2. Pointer<Int32> x,
  3. Pointer<Int32> y
)

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

extern DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_Window * window, int *x, int *y)

Implementation

void sdlGetWindowPosition(
    Pointer<SdlWindow> window, Pointer<Int32> x, Pointer<Int32> y) {
  final sdlGetWindowPositionLookupFunction = libSdl2.lookupFunction<
      Void Function(
          Pointer<SdlWindow> window, Pointer<Int32> x, Pointer<Int32> y),
      void Function(Pointer<SdlWindow> window, Pointer<Int32> x,
          Pointer<Int32> y)>('SDL_GetWindowPosition');
  return sdlGetWindowPositionLookupFunction(window, x, y);
}