GtkSource.Tag¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GtkSource.Tag(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A tag that can be applied to text in a [class`Buffer`].
GtkSourceTag
is a subclass of [class`Gtk`.TextTag] that adds properties useful for theGtkSource.View
library.If, for a certain tag, [class`Gtk`.TextTag] is sufficient, it’s better that you create a [class`Gtk`.TextTag], not a [class`Tag`].
- classmethod new(name)¶
- Parameters:
- Returns:
a new
GtkSourceTag
.- Return type:
Creates a
GtkSourceTag
.Configure the tag using object arguments, i.e. using [method`GObject`.Object.set].
For usual cases, [method`Buffer`.create_source_tag] is more convenient to use.
Property Details¶
- GtkSource.Tag.props.draw_spaces¶
- Name:
draw-spaces
- Type:
- Default Value:
- Flags:
Whether to draw white spaces.
This property takes precedence over the value defined by the [class`SpaceDrawer`]’s [property`SpaceDrawer`:py:data::matrix<GtkSource.Tag.props.matrix>] property (only where the tag is applied).
Setting this property also changes [property`Tag`:py:data::draw-spaces-set<GtkSource.Tag.props.draw_spaces_set>] to
True
.