> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simular.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Screen

# Class: Screen

Defined in: [index.d.ts:863](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L863)

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](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L877)

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](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L871)

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](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L865)

Returns the screen identifier for the main screen.

#### Returns

`Screen`
