Index

Package: Text_Tag_Table

Description

package Gtk.Text_Tag_Table is
You may wish to begin by reading the <link linkend="TextWidget">text widget conceptual overview</link> 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. == A UI definition fragment specifying tags == <object class="GtkTextTagTable"> <child type="tag"> <object class="GtkTextTag"/> </child> </object>

Packages

Foreach_User_Data (generic)

Implements_Gtk_Buildable (new Glib.Types.Implements)

Classes

Gtk_Text_Tag_Table_Record

type Gtk_Text_Tag_Table_Record is new GObject_Record with null record;

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)
On_Tag_Added
On_Tag_Added
On_Tag_Changed
On_Tag_Changed
On_Tag_Removed
On_Tag_Removed

Types

Gtk_Text_Tag_Table

type Gtk_Text_Tag_Table is access all Gtk_Text_Tag_Table_Record'Class;

Gtk_Text_Tag_Table_Foreach

type Gtk_Text_Tag_Table_Foreach is access procedure
     (Tag : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class);

Cb_Gtk_Text_Tag_Table_Gtk_Text_Tag_Void

type Cb_Gtk_Text_Tag_Table_Gtk_Text_Tag_Void is not null access procedure
     (Self : access Gtk_Text_Tag_Table_Record'Class;
      Tag  : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class);

Cb_GObject_Gtk_Text_Tag_Void

type Cb_GObject_Gtk_Text_Tag_Void is not null access procedure
     (Self : access Glib.Object.GObject_Record'Class;
      Tag  : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class);

Cb_Gtk_Text_Tag_Table_Gtk_Text_Tag_Boolean_Void

type Cb_Gtk_Text_Tag_Table_Gtk_Text_Tag_Boolean_Void is not null access procedure
     (Self         : access Gtk_Text_Tag_Table_Record'Class;
      Tag          : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class;
      Size_Changed : Boolean);

Cb_GObject_Gtk_Text_Tag_Boolean_Void

type Cb_GObject_Gtk_Text_Tag_Boolean_Void is not null access procedure
     (Self         : access Glib.Object.GObject_Record'Class;
      Tag          : not null access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class;
      Size_Changed : Boolean);

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

Initialize

procedure Initialize 
(Table: not null access Gtk_Text_Tag_Table_Record'Class);
Creates a new Gtk.Text_Tag_Table.Gtk_Text_Tag_Table. The table contains no tags by default.

Gtk_Text_Tag_Table_New

function Gtk_Text_Tag_Table_New return Gtk_Text_Tag_Table;
Creates a new Gtk.Text_Tag_Table.Gtk_Text_Tag_Table. The table contains no tags by default.

Get_Type

function Get_Type return Glib.GType;

Add

procedure Add 
(Table: not null access Gtk_Text_Tag_Table_Record;
Tag: not null 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. Tag must not be in a tag table already, and may not have the same name as an already-added tag. "tag": a Gtk.Text_Tag.Gtk_Text_Tag

Foreach

procedure Foreach 
(Table: not null access Gtk_Text_Tag_Table_Record;
Func: Gtk_Text_Tag_Table_Foreach);
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). "func": a function to call on each tag

Get_Size

function Get_Size 
(Table: not null access Gtk_Text_Tag_Table_Record) return Gint;
Returns the size of the table (number of tags)

Lookup

function Lookup 
(Table: not null access Gtk_Text_Tag_Table_Record;
Name: UTF8_String) return Gtk.Text_Tag.Gtk_Text_Tag;
Look up a named tag. "name": name of a tag

Remove

procedure Remove 
(Table: not null access Gtk_Text_Tag_Table_Record;
Tag: not null 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. "tag": a Gtk.Text_Tag.Gtk_Text_Tag

On_Tag_Added

procedure On_Tag_Added 
(Self: not null access Gtk_Text_Tag_Table_Record;
Call: Cb_Gtk_Text_Tag_Table_Gtk_Text_Tag_Void;
After: Boolean := False);

On_Tag_Added

procedure On_Tag_Added 
(Self: not null access Gtk_Text_Tag_Table_Record;
Call: Cb_GObject_Gtk_Text_Tag_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);

On_Tag_Changed

procedure On_Tag_Changed 
(Self: not null access Gtk_Text_Tag_Table_Record;
Call: Cb_Gtk_Text_Tag_Table_Gtk_Text_Tag_Boolean_Void;
After: Boolean := False);

On_Tag_Changed

procedure On_Tag_Changed 
(Self: not null access Gtk_Text_Tag_Table_Record;
Call: Cb_GObject_Gtk_Text_Tag_Boolean_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
Callback parameters: -- "tag": the changed tag. -- "size_changed": whether the size has been changed.

On_Tag_Removed

procedure On_Tag_Removed 
(Self: not null access Gtk_Text_Tag_Table_Record;
Call: Cb_Gtk_Text_Tag_Table_Gtk_Text_Tag_Void;
After: Boolean := False);

On_Tag_Removed

procedure On_Tag_Removed 
(Self: not null access Gtk_Text_Tag_Table_Record;
Call: Cb_GObject_Gtk_Text_Tag_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);