[ readonly ] screens
Class: SwingUI.
Description:
Returns an array of screen objects [{x,y,width,height}] that are configured on this computer. X and Y is the position of screens relative to one virtual screen. It's useful when you have multiple screens.
Type: Array.<Object>
Examples:
Getting a list of screens:
console.debug(ui.screens);
// Example of returned array:
[
{
default: true,
id: '\\Display0',
description: 'Win32GraphicsDevice[screen=0]',
x: 0,
y: 0,
width: 2560,
height: 1080,
refresh_rate: 59,
bit_depth: 32,
type: 'screen'
},
{
default: false,
id: '\\Display1',
description: 'Win32GraphicsDevice[screen=1]',
x: -1280,
y: 255,
width: 1280,
height: 1024,
refresh_rate: 60,
bit_depth: 32,
type: 'screen'
}
]
