Cursor.from_callback
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( since = "4.16" ) ]
public Cursor.from_callback (owned CursorGetTextureCallback callback, Cursor? fallback)
[ Version ( since = "4.16" ) ]
public Cursor.from_callback (owned CursorGetTextureCallback callback, Cursor? fallback)
Creates a new callback-based cursor object.
Cursors of this kind produce textures for the cursor image on demand, when the callback
is called.
Parameters:
callback |
the `GdkCursorGetTextureCallback` |
fallback |
the `GdkCursor` to fall back to when this one cannot be supported |
data |
data to pass to |
destroy |
destroy notify for |
Returns:
a new `GdkCursor` |