Window.getDeviceCursor

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.

class Window
getDeviceCursor

Parameters

device gdk.device.Device

a master, pointer #GdkDevice.

Return Value

Type: gdk.cursor.Cursor

a #GdkCursor, or null. The returned object is owned by the #GdkWindow and should not be unreferenced directly. Use gdk.window.Window.setCursor to unset the cursor of the window