Event.Event

Managing event handlers.

Members

Aliases

Handler
alias Handler = void delegate(T1, T2)
Undocumented in source.

Functions

addHandler
void addHandler(TDG handler)

Add an event handler with parameter contravariance.

addHandlerExact
void addHandlerExact(Handler handler)

Add an event handler with the exact type.

opApply
int opApply(int delegate(Handler) dg)
opCall
void opCall(T1 v1, T2 v2)

Fire the event handlers.

opCatAssign
void opCatAssign(TDG handler)

Shortcut for addHandler().

removeHandler
void removeHandler(TDG handler)

Remove the specified event handler with parameter contravariance.

removeHandlerExact
void removeHandlerExact(Handler handler)

Remove the specified event handler with the exact Handler type.

Properties

handlers
deprecated Handler[] handlers [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
hasHandlers
bool hasHandlers [@property getter]

Meta