Class Screen

A class allowing to query information about available displays.

Hierarchy

  • FrameworkObject
    • Screen

Constructors

  • Parameters

    • OptionalisInternalConstructor: boolean

    Returns Screen

Accessors

  • get boundsInPixels(): Immutable<Rect2>
  • The bounds in pixels of the screen in virtual screen space, the origin of coordinates is the top left corner of the primary screen.

    Returns Immutable<Rect2>

  • get boundsInPoints(): Immutable<Rect2>
  • The bounds in points of the screen in virtual screen space, the origin of coordinates is the top left corner of the primary screen.

    Returns Immutable<Rect2>

  • get scalingFactor(): number
  • The scaling factor for point/pixel conversion.

    Returns number

Methods

  • Get the list of available screens.

    Returns Screen[]