Method

GdkDisplayget_pointer

deprecated: 3.0 since: 2.2

Declaration [src]

void
gdk_display_get_pointer (
  GdkDisplay* display,
  GdkScreen** screen,
  gint* x,
  gint* y,
  GdkModifierType* mask
)

Description [src]

Gets the current location of the pointer and the current modifier mask for a given display.

Available since: 2.2

Deprecated since: 3.0

Use gdk_device_get_position() instead.

Parameters

screen

Type: GdkScreen

Location to store the screen that the cursor is on, or NULL.

The argument will be set by the function.
The argument can be NULL.
The returned data is owned by the instance.
x

Type: gint*

Location to store root window X coordinate of pointer, or NULL.

The argument will be set by the function.
The argument can be NULL.
y

Type: gint*

Location to store root window Y coordinate of pointer, or NULL.

The argument will be set by the function.
The argument can be NULL.
mask

Type: GdkModifierType

Location to store current modifier mask, 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.