window: adding setBounds and getBounds api

This commit is contained in:
deepak1556 2015-05-01 16:20:53 +05:30
parent 4608f5e9cd
commit ae6a1b409f
8 changed files with 54 additions and 0 deletions

View file

@ -316,6 +316,20 @@ Sets whether the window should be in fullscreen mode.
Returns whether the window is in fullscreen mode.
### BrowserWindow.setBounds(options)
* `options` Object
* `x` Integer
* `y` Integer
* `width` Integer
* `height` Integer
Resizes and moves the window to `width`, `height`, `x`, `y`.
### BrowserWindow.getBounds()
Returns an object that contains window's width, height, x and y values.
### BrowserWindow.setSize(width, height)
* `width` Integer