Surface.getDeviceCursor

gdk.cursor.Cursor getDeviceCursor(gdk.device.Device device)

Retrieves a [gdk.cursor.Cursor] pointer for the device currently set on the specified [gdk.surface.Surface].

If the return value is null then there is no custom cursor set on the specified surface, and it is using the cursor for its parent surface.

Use [gdk.surface.Surface.setCursor] to unset the cursor of the surface.

Parameters

devicea pointer [gdk.device.Device]

Returns

a [gdk.cursor.Cursor]