summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.h
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-11-15 03:37:21 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-16 16:20:47 +0900
commit236f15c3a908c1240b3c0be098d5f11fc0889f40 (patch)
treed744be66034dd28aa71e9f029041f0c9cd80c3fd /gdk/gdkdisplay.h
parentbb218b08e993b839864a47cbcc776da0e53b075f (diff)
downloadgtk+-236f15c3a908c1240b3c0be098d5f11fc0889f40.tar.gz
docs: Move documentation to inline comments: gdkdisplay
Diffstat (limited to 'gdk/gdkdisplay.h')
-rw-r--r--gdk/gdkdisplay.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index 1b11b696c7..17afa4bfc7 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -132,6 +132,28 @@ struct _GdkDisplayClass
gboolean is_error);
};
+/**
+ * GdkDisplayPointerHooks:
+ * @get_pointer: Obtains the current pointer position and modifier state.
+ * The position is given in coordinates relative to the screen containing
+ * the pointer, which is returned in @screen.
+ * @window_get_pointer: Obtains the window underneath the mouse pointer.
+ * Current pointer position and modifier state are returned in @x, @y and
+ * @mask. The position is given in coordinates relative to @window.
+ * @window_at_pointer: Obtains the window underneath the mouse pointer,
+ * returning the location of that window in @win_x, @win_y. Returns %NULL
+ * if the window under the mouse pointer is not known to GDK (for example,
+ * belongs to another application).
+ *
+ * A table of pointers to functions for getting quantities related to
+ * the current pointer position. Each #GdkDisplay has a table of this type,
+ * which can be set using gdk_display_set_pointer_hooks().
+ *
+ * This is only useful for such low-level tools as an event recorder.
+ * Applications should never have any reason to use this facility
+ *
+ * Since: 2.2
+ */
struct _GdkDisplayPointerHooks
{
void (*get_pointer) (GdkDisplay *display,