Crate windows_dpi [] [src]

Functions

desktop_dpi

Returns the default DPI of the primary desktop

enable_dpi

Tells the OS this program is aware of DPI and windows will not be scaled by the OS. Ensure your program uses the DPI values, especially checking per-window and listening for the WM_DPICHANGED message. Please be a good high-DPI citizen :)

get_dpi_for

Returns the DPI of the desktop on which a window currently resides. null may be passed, in which case it will perform the same behavior as desktop_dpi.