Method
GdkWindowget_pointer
deprecated: 3.0
Declaration [src]
GdkWindow*
gdk_window_get_pointer (
GdkWindow* window,
gint* x,
gint* y,
GdkModifierType* mask
)
Description [src]
Obtains the current pointer position and modifier state.
The position is given in coordinates relative to the upper left
corner of window.
Deprecated since: 3.0
Use gdk_window_get_device_position() instead.
Parameters
x-
Type:
gint*Return location for X coordinate of pointer or
NULLto not return the X coordinate.The argument will be set by the function. The argument can be NULL. y-
Type:
gint*Return location for Y coordinate of pointer or
NULLto not return the Y coordinate.The argument will be set by the function. The argument can be NULL. mask-
Type:
GdkModifierTypeReturn location for modifier mask or
NULLto not return the modifier mask.The argument will be set by the function. The argument can be NULL.The caller of the method takes ownership of the returned data, and is responsible for freeing it.
Return value
Type: GdkWindow
The window containing the
pointer (as with gdk_window_at_pointer()), or NULL if the window
containing the pointer isn’t known to GDK.
| The returned data is owned by the instance. |
The return value can be NULL. |