Grx.get_dpi
function get_dpi(): Number(guint) { // Gjs wrapper for grx_get_dpi() }
Gets the display resolution of the current graphics mode or #GRX_DEFAULT_DPI if the current driver does not support getting the resolution.
The display resolution can also be manually specified using Grx.set_driver or the GRX_DRIVER environment variable.
- Returns
the resolution in dots per inch