Widget.addOnButtonPress

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.

  1. gulong addOnButtonPress(bool delegate(GdkEventButton*, Widget) dlg, ConnectFlags connectFlags)
    class Widget
    gulong
    addOnButtonPress
    (
    bool delegate dlg
    ,
    ConnectFlags connectFlags = cast(ConnectFlags)0
    )
  2. gulong addOnButtonPress(bool delegate(Event, Widget) dlg, ConnectFlags connectFlags)

Return Value

Type: gulong

TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.