get_pointer


Description:

public void get_pointer (out int x, out int y)

Obtains the location of the mouse pointer in widget coordinates.

Note:

Use gdk_window_get_device_position instead.

Widget coordinates are a bit odd; for historical reasons, they are defined as this->window coordinates for widgets that return true for get_has_window; and are relative to this->allocation.x, this- >allocation.y otherwise.

Parameters:

this

a Widget

x

return location for the X coordinate, or null

y

return location for the Y coordinate, or null