Display.getNMonitors

int getNMonitors()

Gets the number of monitors that belong to display.

The returned number is valid until the next emission of the #GdkDisplay::monitor-added or #GdkDisplay::monitor-removed signal.

Returns

the number of monitors