Window.displayMode

Wraps SDL_GetWindowDisplayMode which gets the window's display mode attributes

  1. DisplayMode displayMode()
    class Window
    const @property @trusted
    displayMode
    ()
  2. void displayMode(DisplayMode newDisplayMode)

Return Value

dsdl2.DisplayMode storing the attributes

Throws

dsdl2.SDLException if failed to get the display mode

Meta