set_cursor_theme


Description:

[ Version ( since = "2.8" ) ]
public void set_cursor_theme (string? theme, int size)

Sets the cursor theme from which the images for cursor should be taken.

If the windowing system supports it, existing cursors created with Cursor, Cursor.for_display and Cursor.from_name are updated to reflect the theme change. Custom cursors constructed with Cursor.from_pixbuf will have to be handled by the application (GTK+ applications can learn about cursor theme changes by listening for change notification for the corresponding GtkSetting).

Parameters:

this

a Display

theme

the name of the cursor theme to use, or null to unset a previously set value

size

the cursor size to use, or 0 to keep the previous size




2022 vala-language.org