Index

Package: Text_Tag_Table

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)

Classes

Gtk_Text_Tag_Table_Record

type Gtk_Text_Tag_Table_Record is new GObject_Record with private;

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)

Types

Gtk_Text_Tag_Table

type Gtk_Text_Tag_Table is access all Gtk_Text_Tag_Table_Record'Class;

Constants & Global variables

Signal_Tag_Added (Glib.Signal_Name)

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

Signal_Tag_Changed (Glib.Signal_Name)

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

Signal_Tag_Removed (Glib.Signal_Name)

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

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Table: out Gtk_Text_Tag_Table);
Create a new Text_Tag_Table.

Initialize

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

function Get_Type return Glib.GType;
Return the internal value associated with a Gtk_Text_Tag_Table.

Add

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

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

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

function Get_Size 
(Table: access Gtk_Text_Tag_Table_Record) return Gint;
Return the size of the table (number of tags).