Widget.addOnScroll

The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

To receive this signal, the gdk.Window associated to the widget needs to enable the GDK_SCROLL_MASK mask.

This signal will be sent to the grab widget if there is one.

  1. gulong addOnScroll(bool delegate(GdkEventScroll*, Widget) dlg, ConnectFlags connectFlags)
    class Widget
    gulong
    addOnScroll
    (
    bool delegate dlg
    ,
    ConnectFlags connectFlags = cast(ConnectFlags)0
    )
  2. gulong addOnScroll(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.