custom window level docs
This commit is contained in:
parent
fbb3a288ec
commit
b35bde662a
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue