onEvent 
  fun onEvent(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>) -> Boolean): <Error class: unknown class>(source)
Emitted for each GDK event delivered to @controller.
Parameters
connectFlags 
a combination of ConnectFlags
handler
the Callback to connect. Params: event the GdkEvent which triggered this signal. Returns true to stop other handlers from being invoked for the event and the emission of this signal. false to propagate the event further.