commit
c511933cfc
2 changed files with 10 additions and 0 deletions
|
@ -394,6 +394,10 @@ Opens the developer tools.
|
|||
|
||||
Closes the developer tools.
|
||||
|
||||
### BrowserWindow.toggleDevTools()
|
||||
|
||||
Toggle the developer tools.
|
||||
|
||||
### BrowserWindow.inspectElement(x, y)
|
||||
|
||||
* `x` Integer
|
||||
|
|
|
@ -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