Collection of tags that can be used together
Class GtkTextTagTable
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.
Methods | |
add | Add a tag to the table. The tag is assigned the highest priority in the table. |
get_size | Returns the size of the table (number of tags) |
lookup | Look up a named tag. |
remove | Remove a tag from the table. |
signal_tag_added | Connect a VMSlot to the table tag-added signal and return it |
signal_tag_changed | Connect a VMSlot to the table tag-changed signal and return it |
signal_tag_removed | Connect a VMSlot to the table tag-removed signal and return it |
Add a tag to the table. The tag is assigned the highest priority in the table.
GtkTextTagTable.add( tag )
tag | a GtkTextTag |
tag must not be in a tag table already, and may not have the same name as an already-added tag.
Returns the size of the table (number of tags)
GtkTextTagTable.get_size()
Return | number of tags in table |
Look up a named tag.
GtkTextTagTable.lookup( name )
name | name of a tag |
Return | The tag, or nil if none by that name is in the table |
Remove a tag from the table.
GtkTextTagTable.remove( tag )
tag | a GtkTextTag |
Connect a VMSlot to the table tag-added signal and return it
GtkTextTagTable.signal_tag_added()
Connect a VMSlot to the table tag-changed signal and return it
GtkTextTagTable.signal_tag_changed()
Connect a VMSlot to the table tag-removed signal and return it
GtkTextTagTable.signal_tag_removed()