selery ~master (2019-01-01T00:21:55Z)
Dub
Repo
EventListener.opOpAssign
selery
event
event
EventListener
Adds an event through a delegate.
opOpAssign
(void delegate(T) listener)
class
EventListener
(O : Event, Children...)
@
safe
opOpAssign
(
string
op
: "+"
T
)
(
void
delegate
(
T
)
listener
)
if
(
areValidChildren
!(
O
,
Children
)
)
bool
opOpAssign
(void delegate(T) listener)
bool
opOpAssign
(size_t count)
size_t
addEventListener
(void delegate(T) listener)
Return Value
Type:
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.