2016-10-08 13:09:31 +11:00
|
|
|
# Display Object
|
2016-09-28 20:00:01 +13:00
|
|
|
|
2016-10-05 10:55:32 +11:00
|
|
|
* `id` Number - Unique identifier associated with the display.
|
|
|
|
* `rotation` Number - Can be 0, 90, 180, 270, represents screen rotation in
|
2016-09-28 20:00:01 +13:00
|
|
|
clock-wise degrees.
|
|
|
|
* `scaleFactor` Number - Output device's pixel scale factor.
|
|
|
|
* `touchSupport` String - Can be `available`, `unavailable`, `unknown`.
|
2019-02-12 07:34:42 -08:00
|
|
|
* `monochrome` Boolean - Whether or not the display is a monochrome display.
|
|
|
|
* `accelerometerSupport` String - Can be `available`, `unavailable`, `unknown`.
|
|
|
|
* `colorDepth` Number - The number of bits per pixel.
|
|
|
|
* `depthPerComponent` Number - The number of bits per color component.
|
2016-10-08 13:09:31 +11:00
|
|
|
* `bounds` [Rectangle](rectangle.md)
|
2017-04-04 00:35:39 +02:00
|
|
|
* `size` [Size](size.md)
|
2016-10-08 13:09:31 +11:00
|
|
|
* `workArea` [Rectangle](rectangle.md)
|
2017-04-04 00:35:39 +02:00
|
|
|
* `workAreaSize` [Size](size.md)
|
2019-02-12 07:34:42 -08:00
|
|
|
* `internal` Boolean - `true` for an internal display and `false` for an external display
|
2016-09-28 20:00:01 +13:00
|
|
|
|
|
|
|
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.
|