Screen.getMonitorWidthMm

Gets the width in millimeters of the specified monitor, if available. Since 2.14

class Screen
int
getMonitorWidthMm

Parameters

monitorNum int

number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)

Return Value

Type: int

the width of the monitor, or -1 if not available

Meta