Window.getDevicePositionDouble

Obtains the current device position in doubles and modifier state. The position is given in coordinates relative to the upper left corner of window.

class Window
getDevicePositionDouble
(,
out double x
,
out double y
,)

Parameters

device Device

pointer GdkDevice to query to.

x double

return location for the X coordinate of device, or NULL. out[allow-none]

y double

return location for the Y coordinate of device, or NULL. out[allow-none]

mask GdkModifierType

return location for the modifier mask, or NULL. out[allow-none]

Return Value

Type: Window

The window underneath device (as with gdk_device_get_window_at_position()), or NULL if the window is not known to GDK. [transfer none] Since 3.10

Meta