Gtk.Widget.prototype.override_cursor

function override_cursor(cursor:Gdk.RGBA, secondary_cursor:Gdk.RGBA):void {
    // Gjs wrapper for gtk_widget_override_cursor()
}

Sets the cursor color to use in a widget, overriding the #GtkWidget:cursor-color and #GtkWidget:secondary-cursor-color style properties. All other style values are left untouched. See also Gtk.Widget.prototype.modify_style.

Note that the underlying properties have the Gdk.Color type, so the alpha value in @primary and @secondary will be ignored.

Since 3.0

cursor

the color to use for primary cursor (does not need to be allocated), or null to undo the effect of previous calls to of Gtk.Widget.prototype.override_cursor.

secondary_cursor

the color to use for secondary cursor (does not need to be allocated), or null to undo the effect of previous calls to of Gtk.Widget.prototype.override_cursor.