Window.displayMode - multiple declarations

Function Window.displayMode

Wraps SDL_GetWindowDisplayMode which gets the window's display mode attributes

DisplayMode displayMode() @property @trusted const;

Returns

dsdl2.DisplayMode storing the attributes

Throws

dsdl2.SDLException if failed to get the display mode

Function Window.displayMode

Wraps SDL_SetWindowDisplayMode which sets new display mode attributes to the window

void displayMode (
  DisplayMode newDisplayMode
) @property @trusted;

Parameters

NameDescription
newDisplayMode dsdl2.DisplayMode containing the desired attributes

Throws

dsdl2.SDLException if failed to set the display mode