docs updated
This commit is contained in:
parent
2a554cb138
commit
c3049e1e99
2 changed files with 44 additions and 5 deletions
|
@ -789,7 +789,7 @@ bool NativeWindowViews::CanMaximize() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NativeWindowViews::CanMinimize() const {
|
bool NativeWindowViews::CanMinimize() const {
|
||||||
#ifdef (OS_WIN)
|
#ifdef(OS_WIN)
|
||||||
return minimizable_;
|
return minimizable_;
|
||||||
#elif defined(USE_X11)
|
#elif defined(USE_X11)
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -47,13 +47,18 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
||||||
* `maxWidth` Integer - Window's maximum width. Default is no limit.
|
* `maxWidth` Integer - Window's maximum width. Default is no limit.
|
||||||
* `maxHeight` Integer - Window's maximum height. Default is no limit.
|
* `maxHeight` Integer - Window's maximum height. Default is no limit.
|
||||||
* `resizable` Boolean - Whether window is resizable. Default is `true`.
|
* `resizable` Boolean - Whether window is resizable. Default is `true`.
|
||||||
* `movable` Boolean - Whether window is movable. This is only implemented
|
* `movable` Boolean - Whether window is movable. This is not implemented
|
||||||
on OS X. Default is `true`.
|
on Linux. Default is `true`.
|
||||||
|
* `minimizable` Boolean - Whether window is minimizable. This is not
|
||||||
|
implemented on Linux. Default is `true`.
|
||||||
|
* `closable` Boolean - Whether window is closable. This is not implemented
|
||||||
|
on Linux. Default is `true`.
|
||||||
* `alwaysOnTop` Boolean - Whether the window should always stay on top of
|
* `alwaysOnTop` Boolean - Whether the window should always stay on top of
|
||||||
other windows. Default is `false`.
|
other windows. Default is `false`.
|
||||||
* `fullscreen` Boolean - Whether the window should show in fullscreen. When
|
* `fullscreen` Boolean - Whether the window should show in fullscreen. When
|
||||||
set to `false` the fullscreen button will be hidden or disabled on OS X.
|
explicity set to `false` the fullscreen button will be hidden or disabled
|
||||||
Default is `false`.
|
on OS X, or the maximize button will be disabled on Windows. Default is
|
||||||
|
`false`.
|
||||||
* `skipTaskbar` Boolean - Whether to show the window in taskbar. Default is
|
* `skipTaskbar` Boolean - Whether to show the window in taskbar. Default is
|
||||||
`false`.
|
`false`.
|
||||||
* `kiosk` Boolean - The kiosk mode. Default is `false`.
|
* `kiosk` Boolean - The kiosk mode. Default is `false`.
|
||||||
|
@ -523,6 +528,40 @@ Sets whether the window can be manually resized by user.
|
||||||
|
|
||||||
Returns whether the window can be manually resized by user.
|
Returns whether the window can be manually resized by user.
|
||||||
|
|
||||||
|
### `win.setMovable(movable)` _OS X_ _Windows_
|
||||||
|
|
||||||
|
* `movable` Boolean
|
||||||
|
|
||||||
|
Sets whether the window can be moved by user. On Linux does nothing.
|
||||||
|
|
||||||
|
### `win.isMovable()` _OS X_ _Windows_
|
||||||
|
|
||||||
|
Returns whether the window can be moved by user. On Linux always returns
|
||||||
|
`true`.
|
||||||
|
|
||||||
|
### `win.setMinimizable(minimizable)` _OS X_ _Windows_
|
||||||
|
|
||||||
|
* `minimizable` Boolean
|
||||||
|
|
||||||
|
Sets whether the window can be manually minimized by user. On Linux does
|
||||||
|
nothing.
|
||||||
|
|
||||||
|
### `win.isMinimizable()` _OS X_ _Windows_
|
||||||
|
|
||||||
|
Returns whether the window can be manually minimized by user. On Linux always
|
||||||
|
returns `true`.
|
||||||
|
|
||||||
|
### `win.setClosable(closable)` _OS X_ _Windows_
|
||||||
|
|
||||||
|
* `closable` Boolean
|
||||||
|
|
||||||
|
Sets whether the window can be manually closed by user. On Linux does nothing.
|
||||||
|
|
||||||
|
### `win.isClosable()` _OS X_ _Windows_
|
||||||
|
|
||||||
|
Returns whether the window can be manually closed by user. On Linux always
|
||||||
|
returns `true`.
|
||||||
|
|
||||||
### `win.setAlwaysOnTop(flag)`
|
### `win.setAlwaysOnTop(flag)`
|
||||||
|
|
||||||
* `flag` Boolean
|
* `flag` Boolean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue