Method

GdkWindowget_device_cursor

since: 3.0

Declaration [src]

GdkCursor*
gdk_window_get_device_cursor (
  GdkWindow* window,
  GdkDevice* device
)

Description [src]

Retrieves a GdkCursor pointer for the device currently set on the specified GdkWindow, or NULL. If the return value is NULL then there is no custom cursor set on the specified window, and it is using the cursor for its parent window.

Available since: 3.0

Parameters

device

Type: GdkDevice

A master, pointer GdkDevice.

The data is owned by the caller of the method.

Return value

Type: GdkCursor

A GdkCursor, or NULL. The returned object is owned by the GdkWindow and should not be unreferenced directly. Use gdk_window_set_cursor() to unset the cursor of the window.

The returned data is owned by the instance.
The return value can be NULL.