Widget.emit

Allows a class to easily dispatch its own statically-declared event (see Emits). The main benefit of using this over constructing an event yourself is simply that you ensure you haven't sent something you haven't documented you can send.

  1. bool emit(Args args)
    class Widget
    protected final
    bool
    emit
    (
    EventType
    this This
    Args...
    )
    (
    Args args
    )
  2. bool emit()

Return Value

Type: bool

true if you should do your default behavior.

Bugs

It does not do the static checks on gdc right now.

Meta

History

Added May 5, 2021