diff --git a/docs/README.md b/docs/README.md index 6433da3cf16..cf0cc9905ff 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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) diff --git a/docs/api/common/screen.md b/docs/api/common/screen.md new file mode 100644 index 00000000000..a5e8c9cb937 --- /dev/null +++ b/docs/api/common/screen.md @@ -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.