Device.getSurfaceAtPosition

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).

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

Parameters

winX double

return location for the X coordinate of the device location relative to the surface origin

winY double

return location for the Y coordinate of the device location relative to the surface origin

Return Value

Type: gdk.surface.Surface

the gdk.surface.Surface under the device position