screenBounds

fnScreenInfo screenBounds(int screen = 0) nothrow @nogc

Gets the bounding rectangle of a screen.

Parameters

screenScreen number (0 to screenCount-1)

Returns

Screen bounds

Example:

auto info = screenBounds(0);
writeln("Primary screen: ", info.width, "x", info.height);