Package: gdk

Accessor gdk:monitor-scale-factor

Lambda List

gdk:monitor-scale-factor (object)

Syntax

(gdk:monitor-scale-factor object) => scale-factor

Arguments

object -- a gdk:monitor object
scale-factor -- an integer for the scale factor

Details

The accessor for the scale-factor slot of the gdk:monitor class returns the internal scale factor that maps from monitor coordinates 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 particular monitor. But most of the time you are drawing to a window where it is better to use the gdk:window-scale-factor function instead.

Since 3.22
 

See also

#2025-08-31