GtkSource.Style¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
background_color |
r/w |
Equivalent to |
|
bold |
r/w |
For |
|
foreground_color |
r/w |
Equivalent to |
|
italic |
r/w |
For |
|
ref_count |
r |
||
scale |
r/w |
Equivalent to |
|
strikethrough |
r/w |
Equivalent to |
|
underline |
r/w |
Equivalent to |
|
underline_color |
r/w |
Equivalent to |
|
use_background_color |
r/w |
Whether background_color can be taken into account. |
|
use_bold |
r/w |
Whether bold can be taken into account. |
|
use_foreground_color |
r/w |
Whether foreground_color can be taken into account. |
|
use_italic |
r/w |
Whether italic can be taken into account. |
|
use_scale |
r/w |
Whether scale can be taken into account. |
|
use_strikethrough |
r/w |
Whether strikethrough can be taken into account. |
|
use_underline |
r/w |
Whether underline can be taken into account. |
|
use_underline_color |
r/w |
Whether underline_color can be taken into account. |
Methods¶
class |
|
|
|
|
|
|
Details¶
- class GtkSource.Style¶
Before using the value of a certain field, check the boolean value of the corresponding “
use_
” field.New in version 299.2.
- classmethod new()¶
- Returns:
a new
GtkSource.Style
with a reference count of one.- Return type:
Creates a new
GtkSource.Style
with initially all the “use_
” fields set toFalse
.New in version 299.2.
- apply(tag)¶
- Parameters:
tag (
Gtk.TextTag
) – aGtk.TextTag
to apply styles to.
This function modifies the
Gtk.TextTag
properties that are related to theGtkSource.Style
attributes. OtherGtk.TextTag
properties are left untouched.If self is non-
None
, applies self to tag.If self is
None
, the related*-set
properties ofGtk.TextTag
are set toFalse
.New in version 3.22.
- ref()¶
- Returns:
the passed in self.
- Return type:
Increases the reference count of self by one.
New in version 299.2.
- unref()¶
Decreases the reference count of self by one. If the reference count drops to 0, self is freed.
New in version 299.2.