Display

D class that acts as a proxy for a display from a display index

Constructors

this
this()
Undocumented in source.

Members

Functions

bounds
Rect bounds()

Wraps SDL_GetDisplayBounds which gets the display's bounding rectangle

currentDisplayMode
DisplayMode currentDisplayMode()

Wraps SDL_GetCurrentDisplayMode which gets the current display mode for the display

desktopDisplayMode
DisplayMode desktopDisplayMode()

Wraps SDL_GetDesktopDisplayMode which gets the desktop display mode of the display

displayDPI
DisplayDPI displayDPI()

Wraps SDL_GetDisplayDPI (from SDL 2.0.4) which gets the display's DPI information

displayModes
DisplayMode[] displayModes()

Wraps SDL_GetNumDisplayModes and SDL_GetDisplayMode which get return a list of the available display modes of the display

getClosestDisplayMode
DisplayMode getClosestDisplayMode(DisplayMode desiredMode)

Wraps SDL_GetClosestDisplayMode which gets the closest display mode of the display to the desired mode

height
uint height()

Gets the height of the display in pixels

name
string name()

Wraps SDL_GetDisplayName which gets the display's name

opEquals
bool opEquals(Display rhs)

Equality operator overload

orientation
DisplayOrientation orientation()

Wraps SDL_GetDisplayOrientation (from SDL 2.0.9) which gets the display's orientation

toHash
hash_t toHash()

Gets the hash of the dsdl2.Display

toString
string toString()

Formats the dsdl2.Display showing its internal information: "dsdl2.PixelFormat(<sdlDisplayIndex>)"

width
uint width()

Gets the width of the display Wraps in pixels

Variables

sdlDisplayIndex
uint sdlDisplayIndex;

Display index from SDL

Meta