Top |
char * | 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 |
char * | 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 |
char * | line-background | Read / Write / Construct Only |
gboolean | line-background-set | Read / Write / Construct Only |
PangoUnderline | pango-underline | Read / Write / Construct Only |
char * | 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 |
char * | 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” char *
Background color.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: NULL
“background-set”
property“background-set” gboolean
Whether background color is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“bold”
property“bold” gboolean
Bold.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“bold-set”
property“bold-set” gboolean
Whether bold attribute is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“foreground”
property “foreground” char *
Foreground color.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: NULL
“foreground-set”
property“foreground-set” gboolean
Whether foreground color is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“italic”
property“italic” gboolean
Italic.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“italic-set”
property“italic-set” gboolean
Whether italic attribute is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“line-background”
property “line-background” char *
Line background color.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: NULL
“line-background-set”
property“line-background-set” gboolean
Whether line background color is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“pango-underline”
property “pango-underline” PangoUnderline
Pango Underline.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: PANGO_UNDERLINE_NONE
“scale”
property “scale” char *
Text scale factor.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: NULL
“scale-set”
property“scale-set” gboolean
Whether scale attribute is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“strikethrough”
property“strikethrough” gboolean
Strikethrough.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“strikethrough-set”
property“strikethrough-set” gboolean
Whether strikethrough attribute is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“underline-color”
property “underline-color” char *
Underline color.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: NULL
“underline-color-set”
property“underline-color-set” gboolean
Whether underline color attribute is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE
“underline-set”
property“underline-set” gboolean
Whether underline attribute is set.
Owner: GtkSourceStyle
Flags: Read / Write / Construct Only
Default value: FALSE