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, or %NULL.

winY double

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

Return Value

Type: Surface

the GdkSurface under the device position, or %NULL

Meta