Next: , Previous: GtkTextTag, Up: Top


30 GtkTextTagTable

Collection of tags that can be used together

30.1 Overview

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.

30.2 Usage

— Class: <gtk-text-tag-table>

Derives from <gobject>.

This class defines no direct slots.

— Signal on <gtk-text-tag-table>: tag-changed (arg0 <gtk-text-tag>) (arg1 <gboolean>)
— Signal on <gtk-text-tag-table>: tag-added (arg0 <gtk-text-tag>)
— Signal on <gtk-text-tag-table>: tag-removed (arg0 <gtk-text-tag>)
— Function: gtk-text-tag-table-new ⇒  (ret <gtk-text-tag-table>)

Creates a new <gtk-text-tag-table>. The table contains no tags by default.

ret
a new <gtk-text-tag-table>
— Function: gtk-text-tag-table-add (self <gtk-text-tag-table>) (tag <gtk-text-tag>)
— Method: add

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 <gtk-text-tag-table>
tag
a <gtk-text-tag>
— Function: gtk-text-tag-table-remove (self <gtk-text-tag-table>) (tag <gtk-text-tag>)
— Method: remove

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 <gtk-text-tag-table>
tag
a <gtk-text-tag>
— Function: gtk-text-tag-table-lookup (self <gtk-text-tag-table>) (name mchars) ⇒  (ret <gtk-text-tag>)
— Method: lookup

Look up a named tag.

table
a <gtk-text-tag-table>
name
name of a tag
ret
The tag, or ‘#f’ if none by that name is in the table.
— Function: gtk-text-tag-table-get-size (self <gtk-text-tag-table>) ⇒  (ret int)
— Method: get-size

Returns the size of the table (number of tags)

table
a <gtk-text-tag-table>
ret
number of tags in table