Event.Event

Managing event handlers.

Members

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

hasHandlers
bool hasHandlers [@property getter]

Meta