Widget.getPointer
void getPointer(out int x, out int y)Obtains the location of the mouse pointer in widget coordinates. Widget coordinates are a bit odd; for historical reasons, they are defined as widget->window coordinates for widgets that return true for [gtk.widget.Widget.getHasWindow]; and are relative to widget->allocation.x, widget->allocation.y otherwise.
Parameters
x | return location for the X coordinate, or null |
y | return location for the Y coordinate, or null |
Deprecated
Use [gdk.window.Window.getDevicePosition] instead.