GtkSource.Annotation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GtkSource.Annotation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents an annotation added to [class`View`], it has a [property`Annotation`:py:data::line<GtkSource.Annotation.props.line>] property, [property`Annotation`:py:data::description<GtkSource.Annotation.props.description>], icon and a style.
It will be displayed always at the end of a line.
If the style is
GtkSource.AnnotationStyle.NONEit will use the same color as [class`SpaceDrawer`].New in version 5.18.
- classmethod new(description, icon, line, style)¶
- Parameters:
line (
int) – the line where to display the annotation.style (
GtkSource.AnnotationStyle) –GtkSource.AnnotationStyle
- Returns:
a new [class`Annotation`]
- Return type:
- get_style()¶
- Returns:
the style of the annotation
- Return type:
Property Details¶
- GtkSource.Annotation.props.description¶
-
The text description displayed at [property`Annotation`:py:data::line<GtkSource.Annotation.props.line>]
New in version 5.18.
- GtkSource.Annotation.props.icon¶
-
The icon displayed at [property`Annotation`:py:data::line<GtkSource.Annotation.props.line>]
It will be displayed before the text description
New in version 5.18.
- GtkSource.Annotation.props.line¶
-
The line where to display the annotation
New in version 5.18.
- GtkSource.Annotation.props.style¶
- Name:
style- Type:
- Default Value:
- Flags:
The style of the annotation
New in version 5.18.