custom window level docs

This commit is contained in:
adammeyer 2016-09-21 19:06:36 -04:00
parent fbb3a288ec
commit b35bde662a

View file

@ -809,14 +809,17 @@ Sets whether the window can be manually closed by user. On Linux does nothing.
Returns whether the window can be manually closed by user. On Linux always
returns `true`.
#### `win.setAlwaysOnTop(flag)`
#### `win.setAlwaysOnTop(flag[, level])`
* `flag` Boolean
* `level` Integer (optional) macOS
Sets whether the window should show always on top of other windows. After
setting this, the window is still a normal window, not a toolbox window which
can not be focused on.
A custom level can be set on MacOS that will override the default `NSFloatingWindowLevel`.
#### `win.isAlwaysOnTop()`
Returns whether the window is always on top of other windows.