Surface.getDevicePosition

bool getDevicePosition(gdk.device.Device device, out double x, out double y, out gdk.types.ModifierType mask)

Obtains the current device position and modifier state.

The position is given in coordinates relative to the upper left corner of surface.

Parameters

devicepointer [gdk.device.Device] to query to
xreturn location for the X coordinate of device
yreturn location for the Y coordinate of device
maskreturn location for the modifier mask

Returns

true if the device is over the surface