selery ~master (2019-01-01T00:21:55Z)
Dub
Repo
EventListener.addEventListener
selery
event
event
EventListener
Adds an event through a delegate.
size_t
addEventListener
(void delegate(T) listener)
class
EventListener
(O : Event, Children...)
@
trusted
size_t
addEventListener
(
T
)
(
void
delegate
(
T
)
listener
)
if
(
is
(
T
== class) &&
is
(
T
:
O
)
||
is
(
T
== interface)
)
if
(
areValidChildren
!(
O
,
Children
)
)
opOpAssign
(void delegate(T) listener)
Return Value
Type:
size_t
an id that can be used to unregister the event
Meta
Source
See Implementation
selery
event
event
EventListener
functions
addEventListener
callCancellableIfExists
callEvent
callEventIfExists
callablesOf
opOpAssign
removeEventListener
setListener
variables
listeners
Adds an event through a delegate.