forked from AuroraMiddleware/gtk
Document gtk_widget_get_scale_factor
This commit is contained in:
parent
7fbf6a67a2
commit
e79842d64c
@ -10114,6 +10114,20 @@ _gtk_widget_scale_changed (GtkWidget *widget)
|
||||
NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_widget_get_scale_factor:
|
||||
* @widget: a #GtkWidget
|
||||
*
|
||||
* 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().
|
||||
*
|
||||
* Returns: the scale factor for @widget
|
||||
*
|
||||
* Since: 3.10
|
||||
*/
|
||||
gint
|
||||
gtk_widget_get_scale_factor (GtkWidget *widget)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user