size property

WindowSize size

Get the size of this window.

SDL Docs

Implementation

WindowSize get size {
  sdl.sdl.SDL_GetWindowSize(handle, sdl.xPointer, sdl.yPointer);
  return WindowSize(sdl.xPointer.value, sdl.yPointer.value);
}
void size=(WindowSize value)

Set the size of this window.

SDL Docs

Implementation

set size(final WindowSize value) =>
    sdl.sdl.SDL_SetWindowSize(handle, value.width, value.height);