Skip to main content

Class: Screen

Defined in: index.d.ts:863 Represents a physical display/screen.

Constructors

Constructor

new Screen(): Screen

Returns

Screen

Methods

dimensions()

dimensions(): [number, number, number, number]
Defined in: index.d.ts:877 Returns the dimensions of the screen in pixels. The return value is [x, y, width, height].

Returns

[number, number, number, number]

fromCurrentMouseLocation()

static fromCurrentMouseLocation(): Screen
Defined in: index.d.ts:871 Returns the screen identifier for the screen on which the mouse is located. If the mouse is not on any screen, the main screen is returned.

Returns

Screen

mainScreen()

static mainScreen(): Screen
Defined in: index.d.ts:865 Returns the screen identifier for the main screen.

Returns

Screen