Screen.getMonitorScaleFactor

Returns the internal scale factor that maps from monitor coordiantes to the actual device pixels. On traditional systems this is 1, but on very high density outputs this can be a higher value (often 2). This can be used if you want to create pixel based data for a particula monitor, but most of the time you're drawing to a window where it is better to use gdk_window_get_scale_factor() instead.

class Screen
int
getMonitorScaleFactor

Parameters

monitorNum int

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

Return Value

Type: int

the scale factor Since 3.10

Meta