Class Display
D class that acts as a proxy for a display from a display index
Properties
Name | Type | Description |
bounds [get]
|
Rect | Wraps SDL_GetDisplayBounds which gets the display's bounding rectangle
|
currentDisplayMode [get]
|
DisplayMode | Wraps SDL_GetCurrentDisplayMode which gets the current display mode for the display
|
desktopDisplayMode [get]
|
DisplayMode | Wraps SDL_GetDesktopDisplayMode which gets the desktop display mode of the display
|
displayDPI [get]
|
std.typecons.Tuple!(float,"ddpi",float,"hdpi",float,"vdpi") | Wraps SDL_GetDisplayDPI (from SDL 2.0.4) which gets the display's DPI information
|
displayModes [get]
|
DisplayMode[] | Wraps SDL_GetNumDisplayModes and SDL_GetDisplayMode which get return a list of the available
display modes of the display
|
height [get]
|
uint | Gets the height of the display in pixels
|
name [get]
|
string | Wraps SDL_GetDisplayName which gets the display's name
|
orientation [get]
|
DisplayOrientation | Wraps SDL_GetDisplayOrientation (from SDL 2.0.9) which gets the display's orientation
|
width [get]
|
uint | Gets the width of the display
Wraps in pixels
|
Methods
Name | Description |
getClosestDisplayMode
(desiredMode)
|
Wraps SDL_GetClosestDisplayMode which gets the closest display mode of the display to the desired mode
|
opEquals
(rhs)
|
Equality operator overload
|
toHash
()
|
Gets the hash of the dsdl2.Display
|
toString
()
|
Formats the dsdl2.Display showing its internal information: "dsdl2.PixelFormat(<sdlDisplayIndex>)"
|