Generated from button presses for the buttons 4 to 7. Wheel mice are
usually configured to generate button press events for buttons 4 and 5
when the wheel is turned.
Some GDK backends can also generate 'smooth' scroll events, which
can be recognized by the GDK_SCROLL_SMOOTH scroll direction. For
these, the scroll deltas can be obtained with
gdk_event_get_scroll_deltas().
GdkEventType type;
the type of the event (GDK_SCROLL).
GdkWindow *window;
the window which received the event.
gint8 send_event;
TRUE if the event was sent explicitly (e.g. using
XSendEvent).
guint32 time;
the time of the event in milliseconds.
gdouble x;
the x coordinate of the pointer relative to the window.
gdouble y;
the y coordinate of the pointer relative to the window.
guint state;
a bit-mask representing the state of
the modifier keys (e.g. Control, Shift and Alt) and the pointer
buttons. See GdkModifierType. [type GdkModifierType]
GdkScrollDirection direction;
the direction to scroll to (one of GDK_SCROLL_UP,
GDK_SCROLL_DOWN, GDK_SCROLL_LEFT, GDK_SCROLL_RIGHT or
GDK_SCROLL_SMOOTH).
GdkDevice *device;
the device where the event originated.
gdouble x_root;
the x coordinate of the pointer relative to the root of the
screen.
gdouble y_root;
the y coordinate of the pointer relative to the root of the
screen.
gdouble delta_x;
gdouble delta_y;
Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned. Some GDK backends can also generate 'smooth' scroll events, which can be recognized by the GDK_SCROLL_SMOOTH scroll direction. For these, the scroll deltas can be obtained with gdk_event_get_scroll_deltas(). GdkEventType type; the type of the event (GDK_SCROLL). GdkWindow *window; the window which received the event. gint8 send_event; TRUE if the event was sent explicitly (e.g. using XSendEvent). guint32 time; the time of the event in milliseconds. gdouble x; the x coordinate of the pointer relative to the window. gdouble y; the y coordinate of the pointer relative to the window. guint state; a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType. [type GdkModifierType] GdkScrollDirection direction; the direction to scroll to (one of GDK_SCROLL_UP, GDK_SCROLL_DOWN, GDK_SCROLL_LEFT, GDK_SCROLL_RIGHT or GDK_SCROLL_SMOOTH). GdkDevice *device; the device where the event originated. gdouble x_root; the x coordinate of the pointer relative to the root of the screen. gdouble y_root; the y coordinate of the pointer relative to the root of the screen. gdouble delta_x; gdouble delta_y;