Window.getDevicePosition

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

Use gdk.window.Window.getDevicePositionDouble if you need subpixel precision.

class Window
getDevicePosition

Parameters

device gdk.device.Device

pointer #GdkDevice to query to.

x int

return location for the X coordinate of device, or null.

y int

return location for the Y coordinate of device, or null.

mask gdk.types.ModifierType

return location for the modifier mask, or null.

Return Value

Type: gdk.window.Window

The window underneath device (as with gdk.device.Device.getWindowAtPosition), or null if the window is not known to GDK.