Device.getSurfaceAtPosition

gdk.surface.Surface getSurfaceAtPosition(out double winX, out double winY)

Obtains the surface underneath device, returning the location of the device in win_x and win_y.

Returns null if the surface tree under device is not known to GDK (for example, belongs to another application).

Parameters

winXreturn location for the X coordinate of the device location relative to the surface origin
winYreturn location for the Y coordinate of the device location relative to the surface origin

Returns

the [gdk.surface.Surface] under the

device position