| Top |
| gchar * | background | Read / Write / Construct Only |
| gboolean | background-set | Read / Write / Construct Only |
| gboolean | bold | Read / Write / Construct Only |
| gboolean | bold-set | Read / Write / Construct Only |
| gchar * | foreground | Read / Write / Construct Only |
| gboolean | foreground-set | Read / Write / Construct Only |
| gboolean | italic | Read / Write / Construct Only |
| gboolean | italic-set | Read / Write / Construct Only |
| gchar * | line-background | Read / Write / Construct Only |
| gboolean | line-background-set | Read / Write / Construct Only |
| PangoUnderline | pango-underline | Read / Write / Construct Only |
| gchar * | scale | Read / Write / Construct Only |
| gboolean | scale-set | Read / Write / Construct Only |
| gboolean | strikethrough | Read / Write / Construct Only |
| gboolean | strikethrough-set | Read / Write / Construct Only |
| gboolean | underline | Read / Write / Construct Only |
| gchar * | underline-color | Read / Write / Construct Only |
| gboolean | underline-color-set | Read / Write / Construct Only |
| gboolean | underline-set | Read / Write / Construct Only |
The GtkSourceStyle structure is used to describe text attributes which are set when given style is used.
GtkSourceStyle *
gtk_source_style_copy (const GtkSourceStyle *style);
Creates a copy of style
, that is a new GtkSourceStyle instance which
has the same attributes set.
Since: 2.0
void gtk_source_style_apply (const GtkSourceStyle *style,GtkTextTag *tag);
This function modifies the GtkTextTag properties that are related to the GtkSourceStyle properties. 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
“background” property “background” gchar *
Background color.
Flags: Read / Write / Construct Only
Default value: NULL
“background-set” property “background-set” gboolean
Whether background color is set.
Flags: Read / Write / Construct Only
Default value: FALSE
“bold-set” property “bold-set” gboolean
Whether bold attribute is set.
Flags: Read / Write / Construct Only
Default value: FALSE
“foreground” property “foreground” gchar *
Foreground color.
Flags: Read / Write / Construct Only
Default value: NULL
“foreground-set” property “foreground-set” gboolean
Whether foreground color is set.
Flags: Read / Write / Construct Only
Default value: FALSE
“italic” property “italic” gboolean
Italic.
Flags: Read / Write / Construct Only
Default value: FALSE
“italic-set” property “italic-set” gboolean
Whether italic attribute is set.
Flags: Read / Write / Construct Only
Default value: FALSE
“line-background” property “line-background” gchar *
Line background color.
Flags: Read / Write / Construct Only
Default value: NULL
“line-background-set” property “line-background-set” gboolean
Whether line background color is set.
Flags: Read / Write / Construct Only
Default value: FALSE
“pango-underline” property“pango-underline” PangoUnderline
Pango Underline.
Flags: Read / Write / Construct Only
Default value: PANGO_UNDERLINE_NONE
“scale” property “scale” gchar *
Text scale factor.
Flags: Read / Write / Construct Only
Default value: NULL
“scale-set” property “scale-set” gboolean
Whether scale attribute is set.
Flags: Read / Write / Construct Only
Default value: FALSE
“strikethrough” property “strikethrough” gboolean
Strikethrough.
Flags: Read / Write / Construct Only
Default value: FALSE
“strikethrough-set” property “strikethrough-set” gboolean
Whether strikethrough attribute is set.
Flags: Read / Write / Construct Only
Default value: FALSE
“underline” property “underline” gboolean
Underline.
GtkSourceStyle:underline has been deprecated since version 3.18 and should not be used in newly-written code.
Use pango-underline.
Flags: Read / Write / Construct Only
Default value: FALSE
“underline-color” property “underline-color” gchar *
Underline color.
Flags: Read / Write / Construct Only
Default value: NULL
“underline-color-set” property “underline-color-set” gboolean
Whether underline color attribute is set.
Flags: Read / Write / Construct Only
Default value: FALSE