Screen.getMonitorGeometry

Retrieves the #GdkRectangle representing the size and position of the individual monitor within the entire screen area. The returned geometry is in ”application pixels”, not in ”device pixels” (see gdk_screen_get_monitor_scale_factor()).

Monitor numbers start at 0. To obtain the number of monitors of @screen, use gdk_screen_get_n_monitors().

Note that the size of the entire screen area can be retrieved via gdk_screen_get_width() and gdk_screen_get_height().

class Screen
void
getMonitorGeometry

Parameters

monitorNum int

the monitor number

dest GdkRectangle

a #GdkRectangle to be filled with the monitor geometry

Meta