TextTagTable#
Superclasses: Object
Implemented Interfaces: Buildable
The collection of tags in a GtkTextBuffer
You may wish to begin by reading the text widget conceptual overview, which gives an overview of all the objects and data types related to the text widget and how they work together.
GtkTextTagTables as GtkBuildable#
The GtkTextTagTable
implementation of the GtkBuildable
interface
supports adding tags by specifying “tag” as the “type” attribute
of a <child>
element.
An example of a UI definition fragment specifying tags:
<object class="GtkTextTagTable">
<child type="tag">
<object class="GtkTextTag"/>
</child>
</object>
Constructors#
- class TextTagTable
- classmethod new() TextTagTable #
Creates a new
GtkTextTagTable
.The table contains no tags by default.
Methods#
- class TextTagTable
- add(tag: TextTag) bool #
Add a tag to the table.
The tag is assigned the highest priority in the table.
tag
must not be in a tag table already, and may not have the same name as an already-added tag.- Parameters:
tag – a
GtkTextTag