Gtk.Widget.prototype.modify_cursor

function modify_cursor(primary:Gdk.Color, secondary:Gdk.Color):void {
    // Gjs wrapper for gtk_widget_modify_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.modify_style.

Since 2.12

primary

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.modify_cursor.

secondary

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.modify_cursor.