Widget.addDirectEventListener

Events use a Javascript-esque scheme.

addEventListener returns an opaque handle that you can later pass to removeEventListener.

  1. EventListener addDirectEventListener(string event, void delegate() handler, bool useCapture = false)
    class Widget
    addDirectEventListener
    (
    string event
    ,
    void delegate(
    )
    handler
    ,
    bool useCapture = false
    )
  2. EventListener addDirectEventListener(string event, void delegate(Event) handler, bool useCapture = false)

Meta