Surface.setDeviceCursor

void setDeviceCursor(gdk.device.Device device, gdk.cursor.Cursor cursor)

Sets a specific [gdk.cursor.Cursor] for a given device when it gets inside surface.

Passing null for the cursor argument means that surface will use the cursor of its parent surface. Most surfaces should use this default.

Use [gdk.cursor.Cursor.newFromName] or [gdk.cursor.Cursor.newFromTexture] to create the cursor. To make the cursor invisible, use [gdk.types.CursorType.BlankCursor].

Parameters

devicea pointer [gdk.device.Device]
cursora [gdk.cursor.Cursor]