EventListener.opOpAssign

Adds an event through a delegate.

  1. opOpAssign(void delegate(T) listener)
    class EventListener(O : Event, Children...)
    @safe
    opOpAssign
    (
    string op : "+"
    T
    )
    (
    void delegate
    (
    T
    )
    listener
    )
    if (
    areValidChildren!(O, Children)
    )
  2. bool opOpAssign(void delegate(T) listener)
  3. bool opOpAssign(size_t count)
  4. size_t addEventListener(void delegate(T) listener)

Return Value

Type:

an id that can be used to unregister the event

Meta