| 54 | | * These are "raw" callbacks in that they haven't yet been translated or dispatched |
|---|
| 55 | | * to widgets. This is all the input that comes in at the window level. |
|---|
| 56 | | * Luigi uses these to get input which is then dispatched to widgets based on |
|---|
| 57 | | * current focus item, location of the mouse, etc. |
|---|
| 58 | | * See event.d for the definitons of the function types. |
|---|
| | 59 | * These are standard user-level callbacks. |
|---|
| | 60 | * These get dispatched to your code only for |
|---|
| | 61 | * events that weren't handled by any widget |
|---|
| | 62 | * on the GUI overlay. |
|---|
| 92 | | Size get_window_size(WindowHandle h); |
|---|
| | 96 | /** |
|---|
| | 97 | * These are "raw" system callbacks in that they haven't yet been |
|---|
| | 98 | * translated or dispatched to widgets. This is all the input |
|---|
| | 99 | * that comes in at the window level. Luigi uses these to get |
|---|
| | 100 | * input which is then dispatched to widgets based on current |
|---|
| | 101 | * focus item, location of the mouse, etc. See event.d for the |
|---|
| | 102 | * definitons of the function types. |
|---|
| | 103 | */ |
|---|
| | 104 | void addSysKeyCallback(KeyEventFn cb) ; |
|---|
| | 105 | void addSysMouseButtonCallback(MouseButtonEventFn cb) ; |
|---|
| | 106 | |
|---|
| | 107 | // And again for delegates... |
|---|
| | 108 | void addSysKeyCallback(KeyEventDg cb) ; |
|---|
| | 109 | void addSysMouseButtonCallback(MouseButtonEventDg cb) ; |
|---|
| | 110 | |
|---|
| | 111 | // remove raw system callback |
|---|
| | 112 | void removeSysKeyCallback(KeyEventFn cb) ; |
|---|
| | 113 | void removeSysMouseButtonCallback(MouseButtonEventFn cb) ; |
|---|
| | 114 | |
|---|
| | 115 | // And again for delegates... |
|---|
| | 116 | void removeSysKeyCallback(KeyEventDg cb) ; |
|---|
| | 117 | void removeSysMouseButtonCallback(MouseButtonEventDg cb) ; |
|---|
| | 204 | |
|---|
| | 205 | |
|---|
| | 206 | // Implementation of InputAdapter |
|---|
| | 207 | void addSysKeyCallback(KeyEventFn cb) {_lsig.sysKey.connect(cb);} |
|---|
| | 208 | void addSysMouseButtonCallback(MouseButtonEventFn cb) {_lsig.sysMouseButton.connect(cb);} |
|---|
| | 209 | |
|---|
| | 210 | // And again for delegates... |
|---|
| | 211 | void addSysKeyCallback(KeyEventDg cb) {_lsig.sysKey.connect(cb);} |
|---|
| | 212 | void addSysMouseButtonCallback(MouseButtonEventDg cb) {_lsig.sysMouseButton.connect(cb);} |
|---|
| | 213 | |
|---|
| | 214 | // remove raw system callback |
|---|
| | 215 | void removeSysKeyCallback(KeyEventFn cb) {_lsig.sysKey.disconnect(cb);} |
|---|
| | 216 | void removeSysMouseButtonCallback(MouseButtonEventFn cb) {_lsig.sysMouseButton.disconnect(cb);}; |
|---|
| | 217 | |
|---|
| | 218 | // And again for delegates... |
|---|
| | 219 | void removeSysKeyCallback(KeyEventDg cb) {_lsig.sysKey.disconnect(cb);} |
|---|
| | 220 | void removeSysMouseButtonCallback(MouseButtonEventDg cb) {_lsig.sysMouseButton.disconnect(cb);}; |
|---|
| | 221 | |
|---|
| | 222 | |
|---|
| | 223 | |
|---|