Skip to main content

Display 对象

🌐 Display Object

  • accelerometerSupport 字符串 - 可以是 availableunavailableunknown
  • bounds 矩形 - 显示区域的边界,以DIP点为单位。
  • colorDepth 数字 - 每像素的位数。
  • colorSpace 字符串 - 表示一种颜色空间(三维对象,包含所有可实现的颜色组合),用于颜色转换。
  • depthPerComponent 数字 - 每个颜色分量的比特数。
  • detected 布尔值 - true 如果系统检测到显示器。
  • displayFrequency 数字 - 显示刷新率。
  • id 编号 - 与显示器相关的唯一标识符。值为 -1 表示显示器无效或尚未知正确的 id,值为 -10 表示该显示器是分配给统一桌面的虚拟显示器。
  • internal 布尔值 - true 用于内部显示,false 用于外部显示。
  • label 字符串 - 用户友好的标签,由平台决定。
  • maximumCursorSize 大小 - 原生像素下的最大光标尺寸。
  • nativeOrigin Point - 返回显示器在像素坐标中的原点。仅在像 X11 这样的窗口系统中可用,这些系统以像素坐标定位显示器。
  • rotation 数字 - 可以是 0、90、180、270,表示屏幕顺时针旋转的角度。
  • scaleFactor 数字 - 输出设备的像素缩放因子。
  • touchSupport 字符串 - 可以是 availableunavailableunknown
  • monochrome 布尔值 - 显示器是否为单色显示器。
  • size 尺寸
  • workArea 矩形 - 显示的工作区域,以DIP点为单位。
  • workAreaSize 尺寸 - 工作区域的尺寸。

Display 对象表示连接到系统的物理显示器。在无头系统上可能存在一个假的 Display,或者 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.