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 Window.getDevicePositionDouble if you need subpixel precision.

class Window
getDevicePosition
(,
out int x
,
out int y
,)

Parameters

device Device

pointer gdk.Device 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 GdkModifierType

return location for the modifier mask, or NULL.

Return Value

Type: Window

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

Meta