W Wrapl, The Programming Language

Libraries:Gtk:Gtk:TextTagTable

Types

T

Inherits from:

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.

Example 20. A UI definition fragment specifying tags

1
2
3
4
5
<object class="GtkTextTagTable">
 <child type="tag">
   <object class="GtkTextTag"/>
 </child>
</object>


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.



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



New() : Gtk.Gtk.TextTagTable.T

Creates a new T. The table contains no tags by default.

Returns a new T


Methods

:Add(self @ T, tag @ Gtk.Gtk.TextTag.T) : Std.Object.T

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.

table a T
tag a Gtk.Gtk.TextTag.T


:Foreach(self @ T, func @ Std.Function.T, data @ Std.Address.T) : Std.Object.T

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).

table a T
func a function to call on each tag. [scope call]
data user data


:GetSize(self @ T) : Std.Integer.SmallT

Returns the size of the table (number of tags)

table a T
Returns number of tags in table


:Lookup(self @ T, name @ Std.String.T) : Gtk.Gtk.TextTag.T

Look up a named tag.

table a T
name name of a tag
Returns The tag, or NULL if none by that name is in the table. [transfer none]


:Remove(self @ T, tag @ Gtk.Gtk.TextTag.T) : Std.Object.T

Remove a tag from the table. This will remove the table's reference to the tag, so be careful - the tag will end up destroyed if you don't have a reference to it.

table a T
tag a Gtk.Gtk.TextTag.T