custom window level as string
This commit is contained in:
parent
b35bde662a
commit
783d47f78b
7 changed files with 28 additions and 12 deletions
|
@ -812,14 +812,13 @@ returns `true`.
|
|||
#### `win.setAlwaysOnTop(flag[, level])`
|
||||
|
||||
* `flag` Boolean
|
||||
* `level` Integer (optional) macOS
|
||||
* `level` String (optional) _macOS_ - Options include (`normal`, `floating`, `torn-off-menu`,
|
||||
`modal-panel`, `main-menu`, `status`, `pop-up-menu`, `screen-saver`, `dock`). Default is `floating`.
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue