Widget.getPointer

Warning gtk_widget_get_pointer has been deprecated since version 3.4 and should not be used in newly-written code. Use gdk_window_get_device_position() instead. 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 are not GTK_NO_WINDOW widgets, and are relative to widget->allocation.x, widget->allocation.y for widgets that are GTK_NO_WINDOW widgets.

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

Parameters

x int

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

y int

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

Meta