Method
GdkDeviceget_state
Declaration [src]
void
gdk_device_get_state (
GdkDevice* device,
GdkWindow* window,
gdouble* axes,
GdkModifierType* mask
)
Description [src]
Gets the current state of a pointer device relative to window
. As a slave
device’s coordinates are those of its master pointer, this
function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE
,
unless there is an ongoing grab on them. See gdk_device_grab().
This method is not directly available to language bindings.
Parameters
window
-
Type:
GdkWindow
A
GdkWindow
.The data is owned by the caller of the method. axes
-
Type: An array of
gdouble
An array of doubles to store the values of the axes of
device
in, orNULL
.The argument can be NULL
.The data is owned by the caller of the method. mask
-
Type:
GdkModifierType
Location to store the modifiers, or
NULL
.The argument will be set by the function. The argument can be NULL
.The caller of the method takes ownership of the returned data, and is responsible for freeing it.