Monitor

external interface Monitor(source)

Allows you to retrieve information about a given monitor.

Since

1.0.0

Properties

Link copied to clipboard
abstract external var name: String?

Human-readable name of the monitor

Link copied to clipboard
abstract external var position: PhysicalPosition

the Top-left corner position of the monitor relative to the larger full screen area, in physical pixels.

Link copied to clipboard
abstract external var scaleFactor: Double

The scale factor that can be used to map physical pixels to logical pixels, e.g. monitor.position.toLogical(monitor.scaleFactor).

Link copied to clipboard
abstract external var size: PhysicalSize

The monitor's resolution in physical pixels.

Link copied to clipboard
abstract external var workArea: MonitorWorkArea

The monitor's work area (the monitor area excluding taskbars and docks) in physical pixels.