## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Text_Tag

- Goto spec source

# Description

    package Gtk.Text_Tag is

A tag is a set of properties that can be associated with a range of text.

See also Gtk.Text_Attributes. Tags should be in a Gtk_Text_Tag_Table for a given before before they are used in that buffer.

Binding from C File version 2.8.17

# Packages

### Text_Tag_List (new Glib.GSlist.Generic_SList)

    package Text_Tag_List is new Glib.GSlist.Generic_SList
         (Gpointer => Gtk_Text_Tag);

# Classes

### Gtk_Text_Tag_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Text_Tag_Record is new GObject_Record with private;

#### Ancestors:

Glib.Object.GObject_Record

#### Primitive operations:

Get_Priority

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

- To API doc
- To spec

# Types

### Gtk_Text_Tag

- Goto declaration in source

    type Gtk_Text_Tag is access all Gtk_Text_Tag_Record'Class;

# Constants & Global variables

### Background_Full_Height_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Background_Full_Height_Property : constant Glib.Properties.Property_Boolean;

### Background_Gdk_Property

- Goto declaration in source

(Gdk.Color.Property_Gdk_Color)

    Background_Gdk_Property     : constant Gdk.Color.Property_Gdk_Color;

### Background_Property

- Goto declaration in source

(Glib.Properties.Property_String_WO)

    Background_Property         : constant Glib.Properties.Property_String_WO;

### Background_Stipple_Property

- Goto declaration in source

(Glib.Properties.Property_C_Proxy)

    Background_Stipple_Property : constant Glib.Properties.Property_C_Proxy;

### Direction_Property

- Goto declaration in source

(Gtk.Enums.Property_Gtk_Text_Direction)

    Direction_Property         : constant Gtk.Enums.Property_Gtk_Text_Direction;

### Editable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Editable_Property           : constant Glib.Properties.Property_Boolean;

### Family_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Family_Property             : constant Glib.Properties.Property_String;

### Font_Desc_Property

- Goto declaration in source

(Pango.Font.Property_Font_Description)

    Font_Desc_Property          : constant Pango.Font.Property_Font_Description;

### Font_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Font_Property               : constant Glib.Properties.Property_String;

### Foreground_Gdk_Property

- Goto declaration in source

(Gdk.Color.Property_Gdk_Color)

    Foreground_Gdk_Property     : constant Gdk.Color.Property_Gdk_Color;

### Foreground_Property

- Goto declaration in source

(Glib.Properties.Property_String_WO)

    Foreground_Property         : constant Glib.Properties.Property_String_WO;

### Foreground_Stipple_Property

- Goto declaration in source

(Glib.Properties.Property_C_Proxy)

    Foreground_Stipple_Property : constant Glib.Properties.Property_C_Proxy;

### Indent_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Indent_Property             : constant Glib.Properties.Property_Int;

### Inside_Wrap_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Inside_Wrap_Property        : constant Glib.Properties.Property_Int;

### Invisible_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Invisible_Property          : constant Glib.Properties.Property_Boolean;

### Justification_Property

- Goto declaration in source

(Gtk.Enums.Property_Gtk_Justification)

    Justification_Property      : constant Gtk.Enums.Property_Gtk_Justification;

### Language_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Language_Property           : constant Glib.Properties.Property_String;

### Left_Margin_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Left_Margin_Property        : constant Glib.Properties.Property_Int;

### Name_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Name_Property               : constant Glib.Properties.Property_String;

### Paragraph_Background_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Paragraph_Background_Property  : constant Glib.Properties.Property_String;

### Pixels_Above_Lines_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Pixels_Above_Lines_Property : constant Glib.Properties.Property_Int;

### Pixels_Below_Lines_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Pixels_Below_Lines_Property : constant Glib.Properties.Property_Int;

### Pixels_Inside_Wrap_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Pixels_Inside_Wrap_Property : constant Glib.Properties.Property_Int;

### Right_Margin_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Right_Margin_Property       : constant Glib.Properties.Property_Int;

### Rise_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Rise_Property               : constant Glib.Properties.Property_Int;

### Scale_Property

- Goto declaration in source

(Glib.Properties.Property_Double)

    Scale_Property              : constant Glib.Properties.Property_Double;

### Size_Points_Property

- Goto declaration in source

(Glib.Properties.Property_Double)

    Size_Points_Property        : constant Glib.Properties.Property_Double;

### Size_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Size_Property               : constant Glib.Properties.Property_Int;

### Stretch_Property

- Goto declaration in source

(Pango.Enums.Property_Stretch)

    Stretch_Property            : constant Pango.Enums.Property_Stretch;

### Strikethrough_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Strikethrough_Property      : constant Glib.Properties.Property_Boolean;

### Style_Property

- Goto declaration in source

(Pango.Enums.Property_Style)

    Style_Property              : constant Pango.Enums.Property_Style;

### Underline_Property

- Goto declaration in source

(Pango.Enums.Property_Underline)

    Underline_Property          : constant Pango.Enums.Property_Underline;

### Variant_Property

- Goto declaration in source

(Pango.Enums.Property_Variant)

    Variant_Property            : constant Pango.Enums.Property_Variant;

### Weight_Property

- Goto declaration in source

(Pango.Enums.Property_Weight)

    Weight_Property             : constant Pango.Enums.Property_Weight;

### Wrap_Mode_Property

- Goto declaration in source

(Gtk.Enums.Property_Gtk_Wrap_Mode)

    Wrap_Mode_Property          : constant Gtk.Enums.Property_Gtk_Wrap_Mode;

### Background_Full_Height_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Background_Full_Height_Set_Property : constant
         Glib.Properties.Property_Boolean;

### Background_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Background_Set_Property         : constant Glib.Properties.Property_Boolean;

### Background_Stipple_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Background_Stipple_Set_Property : constant Glib.Properties.Property_Boolean;

### Editable_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Editable_Set_Property           : constant Glib.Properties.Property_Boolean;

### Family_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Family_Set_Property             : constant Glib.Properties.Property_Boolean;

### Foreground_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Foreground_Set_Property         : constant Glib.Properties.Property_Boolean;

### Foreground_Stipple_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Foreground_Stipple_Set_Property : constant Glib.Properties.Property_Boolean;

### Indent_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Indent_Set_Property             : constant Glib.Properties.Property_Boolean;

### Inside_Wrap_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Inside_Wrap_Set_Property        : constant Glib.Properties.Property_Boolean;

### Invisible_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Invisible_Set_Property          : constant Glib.Properties.Property_Boolean;

### Justification_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Justification_Set_Property      : constant Glib.Properties.Property_Boolean;

### Language_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Language_Set_Property           : constant Glib.Properties.Property_Boolean;

### Left_Margin_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Left_Margin_Set_Property        : constant Glib.Properties.Property_Boolean;

### Paragraph_Background_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Paragraph_Background_Set_Property : constant
         Glib.Properties.Property_Boolean;

### Pixels_Above_Lines_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Pixels_Above_Lines_Set_Property : constant Glib.Properties.Property_Boolean;

### Pixels_Below_Lines_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Pixels_Below_Lines_Set_Property : constant Glib.Properties.Property_Boolean;

### Pixels_Inside_Wrap_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Pixels_Inside_Wrap_Set_Property : constant Glib.Properties.Property_Boolean;

### Right_Margin_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Right_Margin_Set_Property       : constant Glib.Properties.Property_Boolean;

### Rise_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Rise_Set_Property               : constant Glib.Properties.Property_Boolean;

### Scale_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Scale_Set_Property              : constant Glib.Properties.Property_Boolean;

### Size_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Size_Set_Property               : constant Glib.Properties.Property_Boolean;

### Stretch_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Stretch_Set_Property            : constant Glib.Properties.Property_Boolean;

### Strikethrough_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Strikethrough_Set_Property      : constant Glib.Properties.Property_Boolean;

### Style_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Style_Set_Property              : constant Glib.Properties.Property_Boolean;

### Tabs_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Tabs_Set_Property               : constant Glib.Properties.Property_Boolean;

### Underline_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Underline_Set_Property          : constant Glib.Properties.Property_Boolean;

### Variant_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Variant_Set_Property            : constant Glib.Properties.Property_Boolean;

### Weight_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Weight_Set_Property             : constant Glib.Properties.Property_Boolean;

### Wrap_Mode_Set_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Wrap_Mode_Set_Property          : constant Glib.Properties.Property_Boolean;

### Signal_Event

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Event : constant Glib.Signal_Name := "event";

# Subprograms & Entries

### Convert

- Goto spec in source

    function Convert (W: Gtk_Text_Tag) return System.Address;

### Convert

- Goto spec in source

    function Convert (W: System.Address) return Gtk_Text_Tag;

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Widget: out Gtk_Text_Tag;Name: String := "");

Create a new Gtk_Text_Tag. Newly created tags must be added to the tags table for the buffer you intend to use them in. Gtk.Text_Tag_Table.Add (Get_Tag_Table (Buffer), Tag); See also Gtk.Text_Buffer.Create_Tag which is a more convenient way of creating a tag.

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Text_Tag_Record'Class;Name: String := "");

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 this widget.

### Set_Priority

- Goto spec in source

    procedure Set_Priority (Tag: access Gtk_Text_Tag_Record;Priority: Gint);

### Get_Priority

- Goto spec in source

    function Get_Priority (Tag: access Gtk_Text_Tag_Record) return Gint;

Set the priority of a Gtk_Text_Tag. Valid priorities start at 0 and go to one less than Table_Size. Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag. Higher priority tags "win" if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with Gtk.Text_Buffer.Create_Tag, which adds the tag to the buffer's table automatically.