GtkSource.StyleScheme¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Style scheme description |
||
r |
Style scheme filename |
||
r/w/co |
Style scheme id |
||
r |
Style scheme name |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GtkSource.StyleScheme(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Controls the appearance of [class`View`].
GtkSource.StyleScheme
contains all the text styles to be used in [class`View`] and [class`Buffer`]. For instance, it contains text styles for syntax highlighting, it may contain foreground and background color for non-highlighted text, color for the line numbers, current line highlighting, bracket matching, etc.Style schemes are stored in XML files. The format of a scheme file is documented in the style scheme reference.
The two style schemes with IDs “classic” and “tango” follow more closely the GTK theme (for example for the background color).
- get_authors()¶
- get_filename()¶
- get_metadata(name)¶
- Parameters:
name (
str
) – metadata property name.- Returns:
value of property name stored in the metadata of self or
None
if self does not contain the specified metadata property.- Return type:
Gets a metadata property from the style scheme.
New in version 5.4.
Property Details¶
- GtkSource.StyleScheme.props.description¶
-
Style scheme description, a translatable string to present to the user.
- GtkSource.StyleScheme.props.id¶
- Name:
id
- Type:
- Default Value:
- Flags:
Style scheme id, a unique string used to identify the style scheme in [class`StyleSchemeManager`].