Surface.getDevicePosition

Obtains the current device position and modifier state.

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

class Surface
bool
getDevicePosition

Parameters

device gdk.device.Device

pointer gdk.device.Device to query to

x double

return location for the X coordinate of device

y double

return location for the Y coordinate of device

mask gdk.types.ModifierType

return location for the modifier mask

Return Value

Type: bool

true if the device is over the surface