当前位置: 首页 > 文档资料 > Electron 中文文档 >

Display对象

优质
小牛编辑
147浏览
2023-12-01
  • id数字-与显示相关联的唯一的标志符
  • rotation数字--可以是 0, 90, 180, 270, 代表屏幕旋转角度。
  • scaleFactor数字-输出设备的像素比例因子。
  • touchSupport字符串--可以是 availableunavailableunknown
  • 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 矩形
  • size 尺寸
  • workArea 矩形
  • workAreaSize尺寸
  • internal Boolean - true for an internal display and false for an external display

Display 对象表示一个连接到系统的物理显示。 一个伪 Display 可能存在于无图形界面(Gui)系统上, 或者 一个Display 可能与一个远程的虚拟显示相对应。

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.