Add listener for custom event. Can be used like this:
auto eid = win.addEventListener((MyStruct evt) { ... }); ... win.removeEventListener(eid);
0 on failure (should never happen, so ignore it)
See Implementation
Add listener for custom event. Can be used like this: