window: adding setBounds and getBounds api
This commit is contained in:
parent
4608f5e9cd
commit
ae6a1b409f
8 changed files with 54 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue