跳转到主内容

Display对象

  • accelerometerSupport 字符串-可以是 availableunavailableunknown
  • bounds Rectangle - display 的 DIP points 中的界限。
  • colorDepth 数字 - 表示Display对象对应于色彩空间的比特深度
  • colorSpace string - represent a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions.
  • depthPerComponent 数字 - 每个颜色组件的比例数。
  • detected boolean - `true`` if the display is detected by the system.
  • displayFrequency number - 显示刷新率。
  • id number - 与显示相关联的唯一的标志符。 A value of of -1 means the display is invalid or the correct id is not yet known, and a value of -10 means the display is a virtual display assigned to a unified desktop.
  • internal 布尔值 - true 为内部 display,为 false 外部 display.
  • label string - 用户友好标签,由平台设定。
  • maximumCursorSize Size - Maximum cursor size in native pixels.
  • nativeOrigin Point - Returns the display's origin in pixel coordinates. Only available on windowing systems like X11 that position displays in pixel coordinates.
  • rotation 数字 - 可以是 0, 90, 180, 270, 代表屏幕旋转角度。
  • scaleFactor数字-输出设备的像素比例因子。
  • touchSupport 字符串-可以是 availableunavailableunknown
  • monochrome 布尔值-表示display对象是否是一个单色的显示对象(monochrome display)
  • size 尺寸
  • workArea Rectangle - display 的 DIP points 中的工作区。
  • workAreaSize Size - The size of the work area.

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