EventHandler

An event handler which stores events internally.

Members

Aliases

ArgTypes
alias ArgTypes = EventArgs!EventT

The type of accepted event arguments.

EventType
alias EventType = EventT

Type of the accepted event callback functions.

SenderType
alias SenderType = EventSenderType!EventT

The type of accepted event senders.

Functions

opCall
void opCall(SenderType sender, ArgTypes args)

Calls all the events in the handler.

opOpAssign
void opOpAssign(EventT event)

Adds an event to the handler.

opOpAssign
void opOpAssign(EventT event)

Adds an event to the handler.

Properties

callbacks
EventT[] callbacks [@property getter]

The callbacks registered with the handler.

Meta