Method

GdkDisplayget_pointer

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 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 data is owned by the caller of the function.
x 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.
 The instance takes ownership of the data, and is responsible for freeing it.
y 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.
 The instance takes ownership of the data, and is responsible for freeing it.
mask GdkModifierType
 

Location to store current modifier mask, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.