Update screen.md
This commit is contained in:
parent
72d6778894
commit
ffb0c22a80
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,12 @@
|
|||
# screen
|
||||
|
||||
Gets various info about screen size, displays, cursor position, etc.
|
||||
```js
|
||||
var Screen = require('screen');
|
||||
var BrowserWindow = require('browser-window');
|
||||
var size = Screen.getPrimaryDisplay().workAreaSize;
|
||||
mainWindow = new BrowserWindow({ width: size.width, height: size.height });
|
||||
```
|
||||
|
||||
## screen.getCursorScreenPoint()
|
||||
|
||||
|
|
Loading…
Reference in a new issue