Display

external interface Display(source)

Properties

Link copied to clipboard

Can be available, unavailable, unknown.

Link copied to clipboard
abstract var bounds: Rectangle

the bounds of the display in DIP points.

Link copied to clipboard
abstract var colorDepth: Double

The number of bits per pixel.

Link copied to clipboard
abstract var colorSpace: String

represent a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions.

Link copied to clipboard

The number of bits per color component.

Link copied to clipboard
abstract var detected: Boolean

`true`` if the display is detected by the system.

Link copied to clipboard
abstract var displayFrequency: Double

The display refresh rate.

Link copied to clipboard
abstract var id: Double

Unique identifier associated with the display. A value of of -1 means the display is invalid or the correct id is not yet known, and a value of -10 means the display is a virtual display assigned to a unified desktop.

Link copied to clipboard
abstract var internal: Boolean

true for an internal display and false for an external display.

Link copied to clipboard
abstract var label: String

User-friendly label, determined by the platform.

Link copied to clipboard
abstract var maximumCursorSize: Size

Maximum cursor size in native pixels.

Link copied to clipboard
abstract var monochrome: Boolean

Whether or not the display is a monochrome display.

Link copied to clipboard
abstract var nativeOrigin: Point

Returns the display's origin in pixel coordinates. Only available on windowing systems like X11 that position displays in pixel coordinates.

Link copied to clipboard
abstract var rotation: Double

Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.

Link copied to clipboard
abstract var scaleFactor: Double

Output device's pixel scale factor.

Link copied to clipboard
abstract var size: Size
Link copied to clipboard

Can be available, unavailable, unknown.

Link copied to clipboard
abstract var workArea: Rectangle

the work area of the display in DIP points.

Link copied to clipboard
abstract var workAreaSize: Size

The size of the work area.