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
.available
、unavailable
、unknown
。monochrome
boolean -Whether or not the display is a monochrome display.显示器是否为单色显示器。accelerometerSupport
string -Can be可以是available
,unavailable
,unknown
.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.每个颜色组件的位数。displayFrequency
number -The display refresh rate.显示器刷新率。bounds
Rectangle -the bounds of the display in DIP points.以DIP点为单位的显示边界。size
SizeworkArea
Rectangle -the work area of the display in DIP points.以DIP点为单位的显示器工作区域。workAreaSize
Sizeinternal
boolean -内部显示器为true
for an internal display andfalse
for an external displaytrue
,外部显示器为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
可能对应于远程虚拟显示器。