📝 Add docs on screen module.

This commit is contained in:
Cheng Zhao 2014-01-07 20:35:13 +08:00
parent bcdc44c1c6
commit 95b2003193
2 changed files with 12 additions and 0 deletions

View file

@ -35,4 +35,5 @@ Common modules:
* [clipboard](api/common/clipboard.md)
* [crash-reporter](api/common/crash-reporter.md)
* [screen](api/common/screen.md)
* [shell](api/common/shell.md)

11
docs/api/common/screen.md Normal file
View file

@ -0,0 +1,11 @@
# screen
Gets various info about screen size, displays, cursor position, etc.
## screen.getCursorScreenPoint()
Returns the current absolute position of the mouse pointer.
## screen.getPrimaryDisplay()
Returns the primary display.