Adds the given function as a listener to the event.
Removes all listeners to the event.
Removes the given function as a listener to the event.
Method that raises the event and calls all the listeners (if any). It has the signature of the template function so only proper-types parameters can be passed to it.
Determines whether this event slot has any listeners.
The EventSlot class defines an event with custom parameters as members of classes without the need for the classes to derive from EventTarget and use string names for events. Multiple listeners can be added/removed to/from an event.