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
GType _getGType() static nothrow
GType _gType() @property nothrow
TextTagTable self() nothrowReturns `this`, for use in `with` statements.
TextTagTableGidBuilder builder() static nothrowGet builder for [gtk.text_tag_table.TextTagTable] Returns: New builder object
bool add(gtk.text_tag.TextTag tag) nothrowAdd a tag to the table.
void foreach_(gtk.types.TextTagTableForeach func) nothrowCalls func on each tag in table, with user data data.
int getSize() nothrowReturns the size of the table (number of tags) Returns: number of tags in table
gtk.text_tag.TextTag lookup(string name) nothrowLook up a named tag.
void remove(gtk.text_tag.TextTag tag) nothrowRemove 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) 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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.text_tag_table.TextTagTable].
Methods
TextTagTable build() nothrowCreate object from builder. Returns: New object