Gtk.Widget::event

function callback(widget, event:Gdk.Event, ):Boolean;

The GTK+ main loop will emit three signals for each GDK event delivered to a widget: one generic ::event signal, another, more specific, signal that matches the type of event delivered (e.g. Gtk.key-press-event) and finally a generic Gtk.event-after signal.

widget

instance of Gtk.Widget that is emitting the signal

event

the Gdk.Event which triggered this signal

Returns

true to stop other handlers from being invoked for the event and to cancel the emission of the second specific ::event signal. false to propagate the event further and to allow the emission of the second signal. The ::event-after signal is emitted regardless of the return value.