diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-08-28 15:26:47 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-08-28 19:50:34 -0400 |
commit | f7c188c019ec811e4ae5d5bcf7cb333cfdfd9002 (patch) | |
tree | b6d2858b2c3118f9b9b2911e48f9461cf0b4cd68 /gdk/gdkevents.h | |
parent | 5cc13182793a329feeab86078877940a392babda (diff) | |
download | gtk+-f7c188c019ec811e4ae5d5bcf7cb333cfdfd9002.tar.gz |
API: add accessors for GdkEvent fields
Add accessors for the following fields: button, keyval, keycode, scroll
direction, click count.
https://bugzilla.gnome.org/show_bug.cgi?id=657384
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r-- | gdk/gdkevents.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index f1684ba66e..8bf7d565d6 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -1054,9 +1054,19 @@ gboolean gdk_event_get_state (const GdkEvent *event, gboolean gdk_event_get_coords (const GdkEvent *event, gdouble *x_win, gdouble *y_win); -gboolean gdk_event_get_root_coords (const GdkEvent *event, - gdouble *x_root, - gdouble *y_root); +gboolean gdk_event_get_root_coords (const GdkEvent *event, + gdouble *x_root, + gdouble *y_root); +gboolean gdk_event_get_button (const GdkEvent *event, + guint *button); +gboolean gdk_event_get_click_count (const GdkEvent *event, + guint *click_count); +gboolean gdk_event_get_keyval (const GdkEvent *event, + guint *keyval); +gboolean gdk_event_get_keycode (const GdkEvent *event, + guint16 *keycode); +gboolean gdk_event_get_scroll_direction (const GdkEvent *event, + GdkScrollDirection *direction); gboolean gdk_event_get_axis (const GdkEvent *event, GdkAxisUse axis_use, gdouble *value); |