Method

GdkDeviceget_position_double

since: 3.10

Declaration [src]

void
gdk_device_get_position_double (
  GdkDevice* device,
  GdkScreen** screen,
  gdouble* x,
  gdouble* y
)

Description [src]

Gets the current location of device in double precision. 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().

Available since: 3.10

Parameters

screen

Type: GdkScreen

Location to store the GdkScreen the device 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: gdouble*

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

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

Type: gdouble*

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

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