Skip to main content

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.可以是0、90、180、270,表示屏幕按时钟方向旋转的度数。
  • scaleFactor number - Output device's pixel scale factor.输出设备的像素比例因子。
  • touchSupport string - Can be available, unavailable, unknown.可以是availableunavailableunknown
  • monochrome boolean - Whether or not the display is a monochrome display.显示器是否为单色显示器。
  • accelerometerSupport string - Can be available, unavailable, unknown.可以是availableunavailableunknown
  • 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.每个颜色组件的位数。
  • displayFrequency number - The display refresh rate.显示器刷新率。
  • bounds Rectangle - the bounds of the display in DIP points.以DIP点为单位的显示边界。
  • size Size
  • workArea Rectangle - the work area of the display in DIP points.以DIP点为单位的显示器工作区域。
  • workAreaSize Size
  • internal boolean - true for an internal display and false for an external display内部显示器为true,外部显示器为false

The Display object represents a physical display connected to the system. Display对象表示连接到系统的物理显示器。A fake Display may exist on a headless system, or a Display may correspond to a remote, virtual display.Display可能存在于无头系统上,或者Display可能对应于远程虚拟显示器。