Gtk.Widget::button-press-event
function callback(widget, event:Gdk.EventButton, ):Boolean;
The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed.
To receive this signal, the Gdk.Window associated to the widget needs to enable the #GDK_BUTTON_PRESS_MASK mask.
This signal will be sent to the grab widget if there is one.
- widget
instance of Gtk.Widget that is emitting the signal
- event
the Gdk.EventButton which triggered this signal.
- Returns
true to stop other handlers from being invoked for the event. false to propagate the event further.