screenCount

fnint screenCount() nothrow @nogc

Gets the number of screens/monitors.

Returns

Number of available screens

Example:

auto count = screenCount();
writeln("Found ", count, " monitor(s)");