pub type GSignalEmissionHook = Option<unsafe extern "C" fn(ihint: *mut GSignalInvocationHint, n_param_values: guint, param_values: *const GValue, data: gpointer) -> gboolean>;
Expand description
GSignalEmissionHook: @ihint: Signal invocation hint, see #GSignalInvocationHint. @n_param_values: the number of parameters to the function, including the instance on which the signal was emitted. @param_values: (array length=n_param_values): the instance on which the signal was emitted, followed by the parameters of the emission. @data: user data associated with the hook.
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.
Returns: whether it wants to stay connected. If it returns %FALSE, the signal hook is disconnected (and destroyed).
Aliased Type§
pub enum GSignalEmissionHook {
None,
Some(unsafe extern "C" fn(*mut _GSignalInvocationHint, u32, *const _GValue, *mut c_void) -> i32),
}