Display.displayDPI

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

class Display
const @property @trusted
static if(sdlSupport >= SDLSupport.v2_0_4)
DisplayDPI
displayDPI
()

Return Value

named tuple of ddpi, hdpi, and vdpi

Throws

dsdl2.SDLException if failed to get the display's DPI information

Meta