-
attachToScreen
(direction, location)
-
attaches window to a side of the screen
Name |
Type |
Description |
direction |
'horizontal'
|
'vertical'
|
|
location |
'left'
|
'right'
|
'top'
|
'bottom'
|
|
-
-
blur the window
-
-
centers window in middle of other window or document.body
Name |
Type |
Description |
win |
Window
|
optional
|
-
-
closes the window (can be reopened with open)
-
emit
(event)Boolean
inherited
overrides
-
Calls each of the listeners registered for a given event.
Name |
Type |
Description |
event |
String
|
Symbol
|
The event name. |
Returns:
Type |
Description |
Boolean
|
`true` if the event had listeners, else `false`. |
-
eventNames
()Array
inherited
overrides
-
Return an array listing the events for which the emitter has registered
listeners.
Returns:
-
-
focus the window
-
-
Returns:
-
isModal
(ignoreClosed)boolean
-
Name |
Type |
Description |
ignoreClosed |
boolean
|
optional
|
Returns:
-
listenerCount
(event)Number
inherited
overrides
-
Return the number of listeners listening to a given event.
Name |
Type |
Description |
event |
String
|
Symbol
|
The event name. |
Returns:
Type |
Description |
Number
|
The number of listeners. |
-
listeners
(event)Array
inherited
overrides
-
Return the listeners registered for a given event.
Name |
Type |
Description |
event |
String
|
Symbol
|
The event name. |
Returns:
Type |
Description |
Array
|
The registered listeners. |
-
-
return the state of the window
Name |
Type |
Description |
data |
object
|
from save() |
-
-
maximize the window
-
-
move window
Name |
Type |
Description |
x |
number
|
|
y |
number
|
|
-
-
Add a one-time listener for a given event.
Name |
Type |
Default |
Description |
event |
String
|
Symbol
|
|
The event name. |
fn |
function
|
|
The listener function. |
context |
*
|
this
|
optional
The context to invoke the listener with. |
Returns:
-
-
Add a listener for a given event.
Name |
Type |
Default |
Description |
event |
String
|
Symbol
|
|
The event name. |
fn |
function
|
|
The listener function. |
context |
*
|
this
|
optional
The context to invoke the listener with. |
Returns:
-
-
open the window
Name |
Type |
Description |
noFocus |
boolean
|
optional
do not focus window when opened |
-
-
Remove all listeners, or those of the specified event.
Name |
Type |
Description |
event |
String
|
Symbol
|
optional
The event name. |
Returns:
-
removeListener
(event, fn, context, once)EventEmitter
inherited
overrides
-
Remove the listeners of a given event.
Name |
Type |
Description |
event |
String
|
Symbol
|
The event name. |
fn |
function
|
Only remove the listeners that match this function. |
context |
*
|
Only remove the listeners that have this context. |
once |
Boolean
|
Only remove one-time listeners. |
Returns:
-
-
resize the window
Name |
Type |
Description |
width |
number
|
|
height |
number
|
|
-
resizePlacement
(bounds, keepInside)
-
Name |
Type |
Description |
bounds |
Bounds
|
|
keepInside |
boolean
|
'horizontal'
|
'vertical'
|
|
-
-
save the state of the window
Returns:
Type |
Description |
object
|
data |
-
-
sends window to back of window-manager
-
-
send window to front of window-manager