Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func ClearCache() func GetAt(x, y int) float64 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ClearCache ¶ added in v2.2.0 func ClearCache() ClearCache clears the cache. This should be called when monitors are changed by connecting or disconnecting. func GetAt ¶ func GetAt(x, y int) float64 GetAt returns the device scale at (x, y), i.e. the number of device-dependent pixels per device-independent pixel. x and y are in device-dependent pixels and must be the top-left coordinate of a monitor, or 0,0 to request a "global scale". Types ¶ This section is empty. Source Files ¶ View all Source files devicescale.go impl_desktop.go Click to show internal directories. Click to hide internal directories.