GtkSource.StyleScheme¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| get_authors() | |
| get_description() | |
| get_filename() | |
| get_id() | |
| get_name() | |
| get_style(style_id) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| description | str | r | Style scheme description | 
| filename | str | r | Style scheme filename | 
| id | str | r/w/co | Style scheme id | 
| name | str | r | Style scheme name | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class GtkSource.StyleScheme(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - GtkSource.StyleSchemeClass- Returns: - a - None-terminated array containing the self authors or- Noneif no author is specified by the style scheme.- Return type: - [ - str] or- None- New in version 2.0. 
 - 
get_description()¶
- Returns: - self description (if defined), or - None.- Return type: - stror- None- New in version 2.0. 
 - 
get_filename()¶
- Returns: - self file name if the scheme was created parsing a style scheme file or - Nonein the other cases.- Return type: - stror- None- New in version 2.0. 
 - 
get_style(style_id)¶
- Parameters: - style_id ( - str) – id of the style to retrieve.- Returns: - style which corresponds to style_id in the self, or - Nonewhen no style with this name found. It is owned by self and may not be unref’ed.- Return type: - GtkSource.Styleor- None- New in version 2.0. 
 
Property Details¶
- 
GtkSource.StyleScheme.props.description¶
- Name: - description- Type: - str- Default Value: - None- Flags: - READABLE- Style scheme description, a translatable string to present to the user. 
- 
GtkSource.StyleScheme.props.filename¶
- Name: - filename- Type: - str- Default Value: - None- Flags: - READABLE- Style scheme filename or - None.
- 
GtkSource.StyleScheme.props.id¶
- Name: - id- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Style scheme id, a unique string used to identify the style scheme in - GtkSource.StyleSchemeManager.