Gtk.Widget.GetPointer Method
Obtains the location of the mouse pointer in widget coordinates.

Syntax

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

Parameters

x
Return location for the X coordinate, or null.
y
Return location for the Y coordinate, or null.

Remarks

Widget coordinates are a bit odd; for historical reasons, they are defined as widget->window coordinates for widgets that are not WidgetFlags.NoWindowwidgets, and are relative to widget->allocation.x, widget->allocation.y for widgets that are WidgetFlags.NoWindowwidgets.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)