set_cursor_from_name


Description:

public void set_cursor_from_name (string? name)

Sets a named cursor to be shown when pointer devices point towards this.

This is a utility function that creates a cursor via Cursor.from_name and then sets it on this with set_cursor. See those 2 functions for details.

On top of that, this function allows name to be null, which will do the same as calling set_cursor with a null cursor.

Parameters:

this

a Widget

name

The name of the cursor or null to use the default cursor