Display.getPointer

Warning gdk_display_get_pointer has been deprecated since version 3.0 and should not be used in newly-written code. Use gdk_device_get_position() instead. Gets the current location of the pointer and the current modifier mask for a given display. Since 2.2

class Display
void
getPointer
(,
out int x
,
out int y
,)

Parameters

screen Screen

location to store the screen that the cursor is on, or NULL. out[allow-none][transfer none]

x int

location to store root window X coordinate of pointer, or NULL. out[allow-none]

y int

location to store root window Y coordinate of pointer, or NULL. out[allow-none]

mask GdkModifierType

location to store current modifier mask, or NULL. out[allow-none]

Meta