Display

external interface Display(source)

Properties

Link copied to clipboard

Can be available, unavailable, unknown.

Link copied to clipboard
abstract external var bounds: Rectangle

the bounds of the display in DIP points.

Link copied to clipboard
abstract external var colorDepth: Double

The number of bits per pixel.

Link copied to clipboard
abstract external 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
abstract external var depthPerComponent: Double

The number of bits per color component.

Link copied to clipboard
abstract external var detected: Boolean

true if the display is detected by the system.

Link copied to clipboard
abstract external var displayFrequency: Double

The display refresh rate.

Link copied to clipboard
abstract external var id: Double

Unique identifier associated with the display. A value 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 external var internal: Boolean

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

Link copied to clipboard
abstract external var label: String

User-friendly label, determined by the platform.

Link copied to clipboard
abstract external var maximumCursorSize: Size

Maximum cursor size in native pixels.

Link copied to clipboard
abstract external var monochrome: Boolean

Whether or not the display is a monochrome display.

Link copied to clipboard
abstract external 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 external var rotation: Double

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

Link copied to clipboard
abstract external var scaleFactor: Double

Output device's pixel scale factor.

Link copied to clipboard
abstract external var size: Size
Link copied to clipboard
abstract external var touchSupport: DisplayTouchSupport

Can be available, unavailable, unknown.

Link copied to clipboard
abstract external var workArea: Rectangle

the work area of the display in DIP points.

Link copied to clipboard
abstract external var workAreaSize: Size

The size of the work area.