get_scale


Description:

[ Version ( since = "4.14" ) ]
public double get_scale ()

Gets the internal scale factor that maps from monitor coordinates to device pixels.

This can be used if you want to create pixel based data for a particular monitor, but most of the time you’re drawing to a surface where it is better to use [method@Gdk.Surface.get_scale] instead.

Parameters:

this

a `GdkMonitor`

Returns:

the scale