Gtk.Text_Tag_Table

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

You may wish to begin by reading the [text widget conceptual overview][TextWidget] 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.

An example of a UI definition fragment specifying tags:

<object class="GtkTextTagTable">
 <child type="tag">
   <object class="GtkTextTag"/>
 </child>
</object>

"+"

function "+"
  (Widget : access Gtk_Text_Tag_Table_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Text_Tag_Table
Parameters
Interf
Return Value

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.

Parameters
Table
Tag

a Gtk.Text_Tag.Gtk_Text_Tag

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);
Parameters
Self
Tag
Size_Changed

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);
Parameters
Self
Tag

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);
Parameters
Self
Tag
Size_Changed

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);
Parameters
Self
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).

Parameters
Table
Func

a function to call on each tag

Get_Size

function Get_Size
   (Table : not null access Gtk_Text_Tag_Table_Record) return Glib.Gint

Returns the size of the table (number of tags)

Parameters
Table
Return Value

number of tags in Table

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_New

procedure Gtk_New (Table : out Gtk_Text_Tag_Table)

Creates a new Gtk.Text_Tag_Table.Gtk_Text_Tag_Table. The table contains no tags by default. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Table

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

the Gtk.Text_Tag.Gtk_Text_Tag

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.

Return Value

Gtk_Text_Tag_Table_Record

type Gtk_Text_Tag_Table_Record is new GObject_Record with null record;

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Text_Tag_Table_Record, 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. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Table

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.

Parameters
Table
Name

name of a tag

Return Value

The tag, or null if none by that name is in the table.

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)
Parameters
Self
Call
Slot
After

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)
Parameters
Self
Call
After

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: -- @param Tag the changed tag. -- @param Size_Changed whether the change affects the -- Gtk.Text_View.Gtk_Text_View layout.

Parameters
Self
Call
Slot
After

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)

Callback parameters: -- @param Tag the changed tag. -- @param Size_Changed whether the change affects the -- Gtk.Text_View.Gtk_Text_View layout.

Parameters
Self
Call
After

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)
Parameters
Self
Call
Slot
After

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)
Parameters
Self
Call
After

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. If a Gtk.Text_Buffer.Gtk_Text_Buffer has Table as its tag table, the tag is removed from the buffer. The table's reference to the tag is removed, so the tag will end up destroyed if you don't have a reference to it.

Parameters
Table
Tag

a Gtk.Text_Tag.Gtk_Text_Tag

Signal_Tag_Added

Signal_Tag_Added : constant Glib.Signal_Name := "tag-added";

Signal_Tag_Changed

Signal_Tag_Changed : constant Glib.Signal_Name := "tag-changed";

Callback parameters: -- @param Tag the changed tag. -- @param Size_Changed whether the change affects the -- Gtk.Text_View.Gtk_Text_View layout.

Signal_Tag_Removed

Signal_Tag_Removed : constant Glib.Signal_Name := "tag-removed";