new Screen(screenConfig)
Creates a new instance of this class.
Parameters:
Name | Type | Description |
---|---|---|
screenConfig |
ScreenConfig | A configuration object for a new instance of this class. |
Properties:
Name | Type | Description |
---|---|---|
availTop |
number | The available top position of the rendering surface of the monitor device, in CSS pixels. This property is not specified in CSSOM View Module, but is supported by most browsers. |
availLeft |
number | The available left position of the rendering surface of the monitor device, in CSS pixels. This property is not specified in CSSOM View Module, but is supported by most browsers. |
availWidth |
number | The available width of the rendering surface of the monitor device, in CSS pixels. |
availHeight |
number | The available height of the rendering surface of the monitor device, in CSS pixels. |
width |
number | The width of the monitor device, in CSS pixels. |
height |
number | The height of the monitor device, in CSS pixels. |
colorDepth |
number | This value is always 24. This is useless but are included for compatiility. |
pixelDepth |
number | This value is always 24. This is useless but are included for compatiility. |