## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Text_Tag_Table

- Goto spec source

# Description

    package Gtk.Text_Tag_Table is

A table is a collection of tags where you can Add, Remove, Lookup or traverse (Foreach) a tag.

Binding from C File version 2.8.17

# Packages

### Iterator (generic)

Full description

# Classes

### Gtk_Text_Tag_Table_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Text_Tag_Table_Record is new GObject_Record with private;

#### Ancestors:

Glib.Object.GObject_Record

#### Primitive operations:

Add

- To API doc
- To spec

Get_Size

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Lookup

- To API doc
- To spec

Remove

- To API doc
- To spec

# Types

### Gtk_Text_Tag_Table

- Goto declaration in source

    type Gtk_Text_Tag_Table is access all Gtk_Text_Tag_Table_Record'Class;

# Constants & Global variables

### Signal_Tag_Added

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Tag_Added   : constant Glib.Signal_Name := "tag_added";

### Signal_Tag_Changed

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Tag_Changed : constant Glib.Signal_Name := "tag_changed";

### Signal_Tag_Removed

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Tag_Removed : constant Glib.Signal_Name := "tag_removed";

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Table: out Gtk_Text_Tag_Table);

Create a new Text_Tag_Table.

### Initialize

- Goto spec in source

    procedure Initialize (Table: access Gtk_Text_Tag_Table_Record'Class);

Internal initialization function. See the section "Creating your own widgets" in the documentation.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Glib.GType;

Return the internal value associated with a Gtk_Text_Tag_Table.

### Add

- Goto spec in source

    procedure Add (Table: access Gtk_Text_Tag_Table_Record;Tag: access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class);

Add a tag to the table. The tag is assigned the highest priority in the table. You must Unref the Tag on exit

### Remove

- Goto spec in source

    procedure Remove (Table: access Gtk_Text_Tag_Table_Record;Tag: access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class);

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.

### Lookup

- Goto spec in source

    function Lookup (Table: access Gtk_Text_Tag_Table_Record;Name: String) return Gtk.Text_Tag.Gtk_Text_Tag;

Look up a named tag. Return the tag or null if none by that name is in the table.

### Get_Size

- Goto spec in source

    function Get_Size (Table: access Gtk_Text_Tag_Table_Record) return Gint;

Return the size of the table (number of tags).