| Top |  |  |  |  | 
| GtkSourceStyle * | gtk_source_style_new () | 
| GtkSourceStyle * | gtk_source_style_ref () | 
| void | gtk_source_style_unref () | 
| void | gtk_source_style_apply () | 
GtkSourceStyle *
gtk_source_style_new (void);
Creates a new GtkSourceStyle with initially all the "use_" fields set to
FALSE.
Since: 299.2
GtkSourceStyle *
gtk_source_style_ref (GtkSourceStyle *style);
Increases the reference count of style
 by one.
Since: 299.2
void
gtk_source_style_unref (GtkSourceStyle *style);
Decreases the reference count of style
 by one. If the reference count drops
to 0, style
 is freed.
Since: 299.2
void gtk_source_style_apply (GtkSourceStyle *style,GtkTextTag *tag);
This function modifies the GtkTextTag properties that are related to the GtkSourceStyle attributes. Other GtkTextTag properties are left untouched.
If style
 is non-NULL, applies style
 to tag
.
If style
 is NULL, the related *-set properties of GtkTextTag are set to
FALSE.
| style | a GtkSourceStyle to apply, or  | [nullable] | 
| tag | a GtkTextTag to apply styles to. | 
Since: 3.22
struct GtkSourceStyle {
	GdkRGBA foreground_color;
	GdkRGBA background_color;
	GdkRGBA underline_color;
	gdouble scale;
	PangoUnderline underline;
	guint italic : 1;
	guint bold : 1;
	guint strikethrough : 1;
	guint use_foreground_color : 1;
	guint use_background_color : 1;
	guint use_underline_color : 1;
	guint use_scale : 1;
	guint use_underline : 1;
	guint use_italic : 1;
	guint use_bold : 1;
	guint use_strikethrough : 1;
};
Before using the value of a certain field, check the boolean value of the
corresponding "use_" field.
| Equivalent to “foreground-rgba”. | ||
| Equivalent to “background-rgba”. | ||
| Equivalent to “underline-rgba”. | ||
| Equivalent to “scale”. | ||
| Equivalent to “underline”. | ||
| For “style”. | ||
| For “weight”. | ||
| Equivalent to “strikethrough”. | ||
| Whether  | ||
| Whether  | ||
| Whether  | ||
| Whether  | ||
| Whether  | ||
| Whether  | ||
| Whether  | ||
| Whether  | 
Since: 299.2