diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2012-01-23 23:45:26 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-03-01 16:28:56 -0500 |
commit | 7b48a3c0bddfa21cebaa0f97a0290b68cd81805b (patch) | |
tree | 82bd0fe3e6efef062931d479629c8fee6f3641e3 | |
parent | 28e7d3c14880c27591b19f5edc2a6c5b924c14c1 (diff) | |
download | gtk+-7b48a3c0bddfa21cebaa0f97a0290b68cd81805b.tar.gz |
gdk: Add GDK_SCROLL_SMOOTH to GdkScrollDirection
This value will be used for smooth scroll events, as they'll
express the scrolling direction in terms of dx/dy.
-rw-r--r-- | gdk/gdkevents.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index e574bc0190..6aa593a292 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -348,6 +348,8 @@ typedef enum * @GDK_SCROLL_DOWN: the window is scrolled down. * @GDK_SCROLL_LEFT: the window is scrolled to the left. * @GDK_SCROLL_RIGHT: the window is scrolled to the right. + * @GDK_SCROLL_SMOOTH: the scrolling is determined by the delta values + * in #GdkEventScroll. See gdk_event_get_scroll_deltas(). * * Specifies the direction for #GdkEventScroll. */ @@ -356,7 +358,8 @@ typedef enum GDK_SCROLL_UP, GDK_SCROLL_DOWN, GDK_SCROLL_LEFT, - GDK_SCROLL_RIGHT + GDK_SCROLL_RIGHT, + GDK_SCROLL_SMOOTH } GdkScrollDirection; /** |