gtkWidgetGetPointer {RGtk2}R Documentation

gtkWidgetGetPointer

Description

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.

Usage

gtkWidgetGetPointer(object)

Arguments

object [GtkWidget] a GtkWidget

Value

A list containing the following elements:

x [integer] return location for the X coordinate, or NULL
y [integer] return location for the Y coordinate, or NULL

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]