diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-09 13:40:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-09 13:43:12 -0400 |
commit | c9fad251311abeafa95db9f88e345ac4e3688b5f (patch) | |
tree | 36fdb25d30910e39167af9623dafd49976768fe9 /gdk/gdkevents.h | |
parent | 693200f1eb9fb2784736c80a5ede9a60a1afa6a9 (diff) | |
download | gtk+-c9fad251311abeafa95db9f88e345ac4e3688b5f.tar.gz |
gdk: Rename gdk_motion_event_get_history
Scroll events can have history too, so make a
getter that works for both. This drops the
gdk_scroll_event_get_history getter that was
added a few commits earlier, since we now
store scroll history in the same way as
motion history.
Update the docs, and all callers.
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r-- | gdk/gdkevents.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 17f76ce0d8..9abb9a96cd 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -378,6 +378,9 @@ gboolean gdk_event_get_axis (GdkEvent *event, GdkAxisUse axis_use, double *value); GDK_AVAILABLE_IN_ALL +GdkTimeCoord * gdk_event_get_history (GdkEvent *event, + guint *out_n_coords); +GDK_AVAILABLE_IN_ALL gboolean gdk_event_get_pointer_emulated (GdkEvent *event); GDK_AVAILABLE_IN_ALL @@ -393,16 +396,6 @@ void gdk_scroll_event_get_deltas (GdkEvent *event, double *delta_x, double *delta_y); -typedef struct { - guint32 time; - double delta_x; - double delta_y; -} GdkScrollHistory; - -GDK_AVAILABLE_IN_ALL -GdkScrollHistory * gdk_scroll_event_get_history (GdkEvent *event, - guint *out_n); - GDK_AVAILABLE_IN_ALL gboolean gdk_scroll_event_is_stop (GdkEvent *event); GDK_AVAILABLE_IN_ALL @@ -481,9 +474,6 @@ gboolean gdk_grab_broken_event_get_implicit (GdkEvent *event) GDK_AVAILABLE_IN_ALL GType gdk_motion_event_get_type (void) G_GNUC_CONST; -GDK_AVAILABLE_IN_ALL -GdkTimeCoord * gdk_motion_event_get_history (GdkEvent *event, - guint *out_n_coords); GDK_AVAILABLE_IN_ALL GType gdk_delete_event_get_type (void) G_GNUC_CONST; |