Package: gdk

Function gdk:window-pointer

Lambda List

gdk:window-pointer (window)

Arguments

window -- a gdk:window object

Return Value

win -- a gdk:window object containing the pointer as with the gdk:window-at-pointer function, or nil if the window containing the pointer is not known to GDK
x -- an integer with the x coordinate of pointer
y -- an integer with the y coordinate of pointer
mask -- a gdk:modifier-type value with the modifier mask

Details

Obtains the current pointer position and modifier state. The position is given in coordinates relative to the upper left corner of window.

Warning

The gdk:window-pointer function has been deprecated since version 3.0 and should not be used in newly written code. Use the gdk:window-device-position function instead.
 

See also

#2023-2-26