From 95b200319393e58f2798c7de3f0e94aaab6e7896 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 7 Jan 2014 20:35:13 +0800 Subject: [PATCH] :memo: Add docs on screen module. --- docs/README.md | 1 + docs/api/common/screen.md | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 docs/api/common/screen.md diff --git a/docs/README.md b/docs/README.md index 6433da3c..cf0cc990 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 00000000..a5e8c9cb --- /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. -- 2.43.0