rendering. If you wish to change the color used to render the primary and secondary cursors you should use a custom CSS style, through an application-specific #GtkStyleProvider and a CSS style class.
Widget.overrideCursor
void overrideCursor(gdk.rgba.RGBA cursor, gdk.rgba.RGBA secondaryCursor)Sets the cursor color to use in a widget, overriding the cursor-color and secondary-cursor-color style properties. All other style values are left untouched. See also [gtk.widget.Widget.modifyStyle].
Note that the underlying properties have the #GdkColor type, so the alpha value in primary and secondary will be ignored.
Parameters
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.Widget.overrideCursor]. |
secondaryCursor | 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.Widget.overrideCursor]. |
Deprecated
This function is not useful in the context of CSS-based