gtk.text_tag_table

Module for [TextTagTable] class

Types 3

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>

Methods
GType _gType() @property
TextTagTable self()Returns `this`, for use in `with` statements.
TextTagTableGidBuilder builder()Get builder for [gtk.texttagtable.TextTagTable] Returns: New builder object
bool add(gtk.text_tag.TextTag tag)Add a tag to the table. The tag is assigned the highest priority in the table.
void foreach_(gtk.types.TextTagTableForeach func)Calls func on each tag in table, with user data data. Note that the table may not be modified while iterating over it (you can’t add/remove tags).
int getSize()Returns the size of the table (number of tags) Returns: number of tags in table
gtk.text_tag.TextTag lookup(string name)Look up a named tag.
void remove(gtk.text_tag.TextTag tag)Remove a tag from the table. If a #GtkTextBuffer has table as its tag table, the tag is removed from the buffer. The table’s reference to the tag is removed, so the tag will end up destroyed if y...
gulong connectTagAdded(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_tag.TextTag))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.text_tag_table.TextTagTable))) && Parameters!T.length < 3)Connect to `TagAdded` signal.
gulong connectTagChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_tag.TextTag))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == bool))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.text_tag_table.TextTagTable))) && Parameters!T.length < 4)Connect to `TagChanged` signal.
gulong connectTagRemoved(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_tag.TextTag))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.text_tag_table.TextTagTable))) && Parameters!T.length < 3)Connect to `TagRemoved` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GtkTextTagTable. The table contains no tags by default. Returns: a new #GtkTextTagTable

Fluent builder for [gtk.text_tag_table.TextTagTable]