get_scale_factor
Description:
Retrieves the internal scale factor that maps from window coordinates to the actual device pixels.
On traditional systems this is 1, on high density outputs, it can be a higher value (typically 2).
See [method@Gdk.Surface.get_scale_factor].
Note that modern systems may support *fractional* scaling, where the scale factor is not an integer. On such systems, this function will return the next higher integer value, but you probably want to use [method@Gdk.Surface.get_scale] to get the fractional scale value.
Parameters:
this |
a widget |
Returns:
the scale factor for this |