()
| 88 | } |
| 89 | |
| 90 | function setupWindowManager () |
| 91 | { |
| 92 | windowManager = new WindowManager(); |
| 93 | windowManager.setWinShapeChangeCallback(updateWindowShape); |
| 94 | windowManager.setWinChangeCallback(windowsUpdated); |
| 95 | |
| 96 | // here you can add your custom metadata to each windows instance |
| 97 | let metaData = {foo: "bar"}; |
| 98 | |
| 99 | // this will init the windowmanager and add this window to the centralised pool of windows |
| 100 | windowManager.init(metaData); |
| 101 | |
| 102 | // call update windows initially (it will later be called by the win change callback) |
| 103 | windowsUpdated(); |
| 104 | } |
| 105 | |
| 106 | function windowsUpdated () |
| 107 | { |
no test coverage detected