]> khamidou — GitHub mirrors - electron.git/commitdiff
:memo: Add docs on screen module.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 7 Jan 2014 12:35:13 +0000 (20:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 7 Jan 2014 12:35:13 +0000 (20:35 +0800)
docs/README.md
docs/api/common/screen.md [new file with mode: 0644]

index 6433da3cf160b2b5e0d75046387ab807b19947c4..cf0cc9905ff2fb356bfe2a1ab9547ed3f9f521ce 100644 (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)
diff --git a/docs/api/common/screen.md b/docs/api/common/screen.md
new file mode 100644 (file)
index 0000000..a5e8c9c
--- /dev/null
@@ -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.