diff options
author | Michael Natterer <mitch@lanedo.com> | 2012-01-23 23:37:44 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-03-01 16:28:56 -0500 |
commit | 0efbbc6435a5be7790bfc170e250832507298630 (patch) | |
tree | df1cc781cf55dfeb3ace567c979333ddd2075720 /gdk/gdkevents.h | |
parent | 7b48a3c0bddfa21cebaa0f97a0290b68cd81805b (diff) | |
download | gtk+-0efbbc6435a5be7790bfc170e250832507298630.tar.gz |
gdk: Add delta_x/y to scroll events
gdk_event_get_scroll_deltas() can be used to retrieve those
values on smooth scroll events.
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r-- | gdk/gdkevents.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 6aa593a292..4c42678368 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -759,6 +759,8 @@ struct _GdkEventScroll GdkScrollDirection direction; GdkDevice *device; gdouble x_root, y_root; + gdouble delta_x; + gdouble delta_y; }; /** @@ -1203,6 +1205,11 @@ gboolean gdk_event_get_keycode (const GdkEvent *event, GDK_AVAILABLE_IN_3_2 gboolean gdk_event_get_scroll_direction (const GdkEvent *event, GdkScrollDirection *direction); +GDK_AVAILABLE_IN_3_4 +gboolean gdk_event_get_scroll_deltas (const GdkEvent *event, + gdouble *delta_x, + gdouble *delta_y); + gboolean gdk_event_get_axis (const GdkEvent *event, GdkAxisUse axis_use, gdouble *value); |