DisplayMode

The DisplayMode struct contains informations about the current window video mode. It is passed to Window which extract the informations and use them to build a window context.

Constructors

this
this(uint width, uint height, ubyte hz = 60)

CTor

Members

Functions

opEquals
bool opEquals(ref const DisplayMode dm)

opEquals

Static functions

getCurrentMode
DisplayMode getCurrentMode(ubyte display = 0)

Returns the current video mode at the given display

getCurrentVideoDriver
string getCurrentVideoDriver()

Returns the name of the current video driver.

getDesktopMode
DisplayMode getDesktopMode(ubyte display = 0)

Returns the desktop video mode at the given display

getDisplayBounds
Rect getDisplayBounds(ubyte display = 0)

Returns the desktop area represented by the given display, with the primary display located at 0|0.

getDisplayName
string getDisplayName(ubyte display = 0)

Returns the name of the given display

getMode
DisplayMode getMode(uint index, ubyte display = 0)

Returns the video mode at the given index and display

getNumOfDisplays
int getNumOfDisplays()

Returns how many display are available.

getNumOfModes
int getNumOfModes(ubyte display = 0)

Returns how many valid display modes are supported at the given display

getNumOfVideoDrivers
int getNumOfVideoDrivers()

Returns how many video drivers are available.

listModes
DisplayMode[] listModes(ubyte display = 0)

Returns a List of all valid supported video modes at the given display

Variables

height
uint height;

The height of this video mode

refreshRate
ubyte refreshRate;

The refresh rate of this video mode

width
uint width;

The width of this video mode

Meta

Authors

Randy Schuett (rswhite4@googlemail.com)