gtk.text_tag_table
Module for [TextTagTable] class
Types 3
The collection of tags in a [gtk.text_buffer.TextBuffer]
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 [gtk.text_tag_table.TextTagTable] implementation of the [gtk.buildable.Buildable] 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
TextTagTable self()Returns `this`, for use in `with` statements.TextTagTableGidBuilder builder()Get builder for [gtk.texttagtable.TextTagTable] Returns: New builder objectbool add(gtk.text_tag.TextTag tag)Add a tag to the table.void foreach_(gtk.types.TextTagTableForeach func)Calls func on each tag in table, with user data data.int getSize()Returns the size of the table (number of tags) Returns: number of tags in tablegtk.text_tag.TextTag lookup(string name)Look up a named tag.void remove(gtk.text_tag.TextTag tag)Remove a tag from the table.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.Fluent builder for [gtk.text_tag_table.TextTagTable]
Methods