Package: gdk

Function gdk-window-device-position

Lambda List

gdk-window-device-position (window device)

Arguments

window -- a gdk-window object
device -- a gdk-device object to query

Return Value

win -- the gdk-window object underneath device, as with the gdk-device-window-at-position function, or nil if the window is not known to GDK
x -- an integer with the x coordinate of the device
y -- an integer with the y coordinate of the device
mask -- the gdk-modifier-type flags

Details

Obtains the current device position and modifier state. The position is given in coordinates relative to the upper left corner of window. Use the gdk-window-device-position-double function if you need subpixel precision.
 

See also

2021-9-25