Cursor.newFromTexture

gdk.cursor.Cursor newFromTexture(gdk.texture.Texture texture, int hotspotX, int hotspotY, gdk.cursor.Cursor fallback = null)

Creates a new cursor from a [gdk.texture.Texture].

Parameters

texturethe texture providing the pixel data
hotspotXthe horizontal offset of the “hotspot” of the cursor
hotspotYthe vertical offset of the “hotspot” of the cursor
fallbackthe [gdk.cursor.Cursor] to fall back to when this one cannot be supported

Returns

a new [gdk.cursor.Cursor]