| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
|
||||||||||||||||||||||||||||||||
windowOptions |
Window~WindowOptions | optional default options used when createWindow is called |
Classes
Members
-
bounds WindowManager~Bounds
-
-
This is the bottom DOM element. Use this to set a wallpaper or attach elements underneath the windows
-
This is the top-level DOM element
Methods
-
close all windows
-
createWindow (options)Window
-
Create a window
Name Type Description optionsWindowOptions optional Name Type Description titlestring optional xnumber optional position ynumber optional position modalboolean optional idnumber | * optional if not provide, id will be assigned in order of creation (0, 1, 2...) Returns:
Type Description Window the created window -
getWindowById (id)Window
-
Find a window by id
Name Type Description id* Returns:
Type Description Window -
restores the state of all the windows NOTE: this requires that the windows have the same id as when save() was called
Name Type Description dataObject created by save() -
save the state of all the windows
Returns:
Type Description Object use this object in load() to restore the state of all windows -
send window to back
Name Type Description winWindow -
send window to front
Name Type Description winWindow -
enable edge and/or screen snapping
Name Type Description optionsWindowManager~SnapOptions optional
Type Definitions
-
Properties:
Name Type Description leftnumber rightnumber topnumber bottomnumber -
Properties:
Name Type Argument Default Description screenboolean <optional>
true snap to screen edges windowsboolean <optional>
true snap to window edges snapnumber <optional>
20 distance to edge in pixels before snapping and width/height of snap bars colorstring <optional>
#a8f0f4 color for snap bars spacingnumber <optional>
0 spacing distance between window and edges indicatornumber <optional>
10 size in pixels of snapping indicator (the indicator is actually twice the size of what is shown)