Method

GtkWidgetget_scale_factor

since: 3.10

Declaration [src]

gint
gtk_widget_get_scale_factor (
  GtkWidget* widget
)

Description [src]

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 gdk_window_get_scale_factor().

Available since: 3.10

Return value

Type: gint

The scale factor for widget.