SignalEmissionHook

typealias SignalEmissionHook = (ihint: SignalInvocationHint, <Error class: unknown class>) -> Boolean

A simple function pointer to get invoked when the signal is emitted.

Emission hooks allow you to tie a hook to the signal type, so that it will trap all emissions of that signal, from any object.

You may not attach these to signals created with the %G_SIGNAL_NO_HOOKS flag.

  • param ihint Signal invocation hint, see #GSignalInvocationHint.

  • param nParamValues the number of parameters to the function, including the instance on which the signal was emitted.

  • return whether it wants to stay connected. If it returns false, the signal hook is disconnected (and destroyed).