diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-07-05 13:41:34 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-07-05 13:41:34 +0000 |
commit | 191e83b32a2d0c91a530c22f6c22af60fa08a4c1 (patch) | |
tree | d867318e242e21f8d9d4d186a4d8249f7d45910e /gdk/gdkwindow.h | |
parent | bf7258ea8adf3f58bfe7d5ac95893a4718f986b3 (diff) | |
download | gdk-pixbuf-191e83b32a2d0c91a530c22f6c22af60fa08a4c1.tar.gz |
Add gdk_set_pointer_hooks() to allow pointer-querying to be hooked by an
Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
Add gdk_set_pointer_hooks() to allow pointer-querying to
be hooked by an event record/playback system like GERD.
(#56914)
Diffstat (limited to 'gdk/gdkwindow.h')
-rw-r--r-- | gdk/gdkwindow.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h index d13c5acb0..6ea64594a 100644 --- a/gdk/gdkwindow.h +++ b/gdk/gdkwindow.h @@ -12,6 +12,7 @@ extern "C" { typedef struct _GdkGeometry GdkGeometry; typedef struct _GdkWindowAttr GdkWindowAttr; +typedef struct _GdkPointerHooks GdkPointerHooks; /* Classes of windows. * InputOutput: Almost every window should be of this type. Such windows @@ -195,6 +196,16 @@ struct _GdkGeometry GdkGravity win_gravity; }; +struct _GdkPointerHooks +{ + GdkWindow* (*get_pointer) (GdkWindow *window, + gint *x, + gint *y, + GdkModifierType *mask); + GdkWindow* (*window_at_pointer) (gint *win_x, + gint *win_y); +}; + typedef struct _GdkWindowObject GdkWindowObject; typedef struct _GdkWindowObjectClass GdkWindowObjectClass; @@ -496,6 +507,8 @@ void gdk_window_constrain_size (GdkGeometry *geometry, gint *new_width, gint *new_height); +GdkPointerHooks *gdk_set_pointer_hooks (const GdkPointerHooks *new_hooks); + #ifdef __cplusplus } #endif /* __cplusplus */ |