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
(,
out double x
,
out double y
,)

Parameters

device Device

pointer GdkDevice to query to

x double

return locatio for the X coordinate of @device, or %NULL

y double

return location for the Y coordinate of @device, or %NULL

mask GdkModifierType

return location for the modifier mask, or %NULL

Return Value

Type: bool

%TRUE if the device is over the surface

Meta