Method

GtkWidgetoverride_cursor

Declaration [src]

void
gtk_widget_override_cursor (
  GtkWidget* widget,
  const GdkRGBA* cursor,
  const GdkRGBA* secondary_cursor
)

Description [src]

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_modify_style().

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

Available since:3.0
Deprecated since:3.16

This function is not useful in the context of CSS-based 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.

Parameters

cursor GdkRGBA
 

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_override_cursor().

 The argument can be NULL.
 The data is owned by the caller of the function.
secondary_cursor GdkRGBA
 

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_override_cursor().

 The argument can be NULL.
 The data is owned by the caller of the function.