Widget.modifyCursor

void modifyCursor(gdk.color.Color primary, gdk.color.Color secondary)

Sets the cursor color to use in a widget, overriding the #GtkWidget cursor-color and secondary-cursor-color style properties.

All other style values are left untouched. See also [gtk.widget.Widget.modifyStyle].

Parameters

primarythe 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.Widget.modifyCursor].
secondarythe 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.Widget.modifyCursor].

Deprecated

Use [gtk.widget.Widget.overrideCursor] instead.