Window.getDevicePositionDouble

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

class Window
getDevicePositionDouble

Parameters

device gdk.device.Device

pointer #GdkDevice to query to.

x double

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

y double

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.