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
TextTagTableGidBuilder builder() static nothrowGet builder for [gtk.text_tag_table.TextTagTable] Returns: New builder objectbool add(gtk.text_tag.TextTag tag) nothrowAdd a tag to the table. The tag is assigned the highest priority in the table.void foreach_(gtk.types.TextTagTableForeach func) nothrowCalls 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() nothrowReturns the size of the table (number of tags) Returns: number of tags in tablevoid remove(gtk.text_tag.TextTag tag) nothrowRemove 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect to `TagRemoved` signal.classTextTagTableGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gtk.buildable.BuildableGidBuilderImpl!T
Fluent builder implementation template for gtk.text_tag_table.TextTagTable
Fluent builder for gtk.text_tag_table.TextTagTable
Methods