get_pointer


Description:

[ Version ( deprecated = true , deprecated_since = "3.4" ) ]
public void get_pointer (out int x, out int y)

Warning: get_pointer is deprecated since 3.4.

Obtains the location of the mouse pointer in widget coordinates.

Note:

Use 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