Package: gtk

Accessor gtk:widget-scale-factor

Lambda List

gtk:widget-scale-factor (object)

Syntax

(gtk:widget-scale-factor object) => scale

Arguments

object -- a gtk:widget object
scale -- an integer for the scale factor

Details

The gtk:widget-scale-factor function 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 also

2025-2-13