Next: Package_Gtk.Text_View, Previous: Package_Gtk.Text_Tag, Up: Top
_Tag_TableA table is a collection of tags where you can Add, Remove, Lookup or traverse (Foreach) a tag.
| Widget Hierarchy |
|---|
GObject (see Package_Glib.Object) Gtk_Object (see Package_Gtk.Object) \___ Gtk_Text_Tag_Table (see Package_Gtk.Text_Tag_Table) |
| Signals |
|---|
procedure Handler
(Widget : access Gtk_Text_Tag_Table_Record'Class;
Tag : access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class);
procedure Handler
(Widget : access Gtk_Text_Tag_Table_Record'Class;
Tag : access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class;
Size_Changed : Boolean);
procedure Handler
(Widget : access Gtk_Text_Tag_Table_Record'Class;
Tag : access Gtk.Text_Tag.Gtk_Text_Tag_Record'Class);
| Types |
|---|
| |
| |
| |
| Subprograms |
|---|
| procedure Gtk_New (Table : out Gtk_Text_Tag_Table); |
| Create a new Text_Tag_Table. |
| function Get_Type return Glib.GType; |
| Return the internal value associated with a Gtk_Text_Tag_Table. |
| 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. |
| 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. |
| 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. |
| function Get_Size (Table : access Gtk_Text_Tag_Table_Record) return Gint; |
| Return the size of the table (number of tags). |
| procedure Foreach (Table : access Gtk_Text_Tag_Table_Record; Proc : Gtk_Text_Tag_Table_Proc; Data : Data_Type_Access); |
| Call Proc on each tag in Table, with user data Data. |