devicescale

package
v2.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL