Atlas Engine
API Referenceatlas

Monitor

Connected display information and supported video modes.

Module: atlas

Connected display information and supported video modes.

Declaration

export class Monitor { ... }

Properties

monitorId

The monitor identifier.

monitorId: number;

primary

Whether this is the primary monitor.

primary: boolean;

Methods

queryVideoModes

Query video modes.

queryVideoModes(): VideoMode[];

getCurrentVideoMode

Returns current video mode.

getCurrentVideoMode(): VideoMode;

getPhysicalSize

Returns the physical display dimensions in millimeters.

getPhysicalSize(): Size2d;

getPosition

Returns the current position.

getPosition(): Position2d;

getContentScale

Returns content scale.

getContentScale(): number;

getName

Returns name.

getName(): string;

On this page