Document.miscGetWidgetDpi

Returns DPI for monitor on which given widget has been realized. Returns DPI of primary monitor or DPI of first monitor in the list inside of GdkDisplay if the widget has not been realized yet. Returns 96 as fallback value.

class Document
static
double
miscGetWidgetDpi
(
Widget widget
)

Parameters

widget Widget

a #GtkWidget

Return Value

Type: double

DPI as gdouble

Meta