position property

Point<int> position

Get the position of this window.

SDL Docs

Implementation

Point<int> get position {
  sdl.sdl.SDL_GetWindowPosition(handle, sdl.xPointer, sdl.yPointer);
  final pos = Point(sdl.xPointer.value, sdl.yPointer.value);
  return pos;
}
void position=(Point<int> pos)

Set the position of this window.

SDL Docs

Implementation

set position(final Point<int> pos) =>
    sdl.sdl.SDL_SetWindowPosition(handle, pos.x, pos.y);