electron/docs/api/structures/display.md
Shelley Vohr 1d93bc76cd feat: expose colorSpace to display object (#17405)
* feat: expose colorSpace to display object

* update doc

* add a spec
2019-03-19 15:12:03 -07:00

1.1 KiB

Display Object

  • id Number - Unique identifier associated with the display.
  • rotation Number - Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.
  • scaleFactor Number - Output device's pixel scale factor.
  • touchSupport String - Can be available, unavailable, unknown.
  • monochrome Boolean - Whether or not the display is a monochrome display.
  • accelerometerSupport String - Can be available, unavailable, unknown.
  • colorSpace String - represent a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions
  • colorDepth Number - The number of bits per pixel.
  • depthPerComponent Number - The number of bits per color component.
  • bounds Rectangle
  • size Size
  • workArea Rectangle
  • workAreaSize Size
  • internal Boolean - true for an internal display and false for an external display

The Display object represents a physical display connected to the system. A fake Display may exist on a headless system, or a Display may correspond to a remote, virtual display.