Device.getWindowAtPositionDouble

Obtains the window underneath device, returning the location of the device in win_x and win_y in double precision. Returns NULL if the window tree under device is not known to GDK (for example, belongs to another application).

As a slave device coordinates are those of its master pointer, This function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them, see Device.grab.

class Device
getWindowAtPositionDouble
(
out double winX
,
out double winY
)

Parameters

winX double

return location for the X coordinate of the device location, relative to the window origin, or NULL.

winY double

return location for the Y coordinate of the device location, relative to the window origin, or NULL.

Return Value

Type: Window

the gdk.Window under the device position, or NULL.

Meta