SimpleWindow.addEventListener

Add listener for custom event. Can be used like this:

auto eid = win.addEventListener((MyStruct evt) { ... });
...
win.removeEventListener(eid);
class SimpleWindow
uint
addEventListener
(
ET : Object
)
(
void delegate
(
ET
)
dg
)

Return Value

Type: uint

0 on failure (should never happen, so ignore it)

Don't use this method in object destructors!
It is better to register all event handlers and don't remove 'em, 'cause if event handler id counter will overflow, you won't be able to register any more events.

Meta