## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Text_Attributes

- Goto spec source

# Description

    package Gtk.Text_Attributes is

This package defines the Gtk_Text_Attributes type.

Binding from C File version 2.8.17

# Types

### Gtk_Text_Attributes

- Goto declaration in source

    type Gtk_Text_Attributes is new Glib.C_Proxy;

### Gtk_Text_Appearance

- Goto declaration in source

    type Gtk_Text_Appearance is new Glib.C_Proxy;

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Text_Attr: out Gtk_Text_Attributes);

Create a new Gtk_Text_Attributes structure.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Glib.GType;

Return the internal type used fro a Gtk_Text_Attributes

### Ref

- Goto spec in source
- Goto body in source

    procedure Ref (Values: Gtk_Text_Attributes);

Increase the reference counter of the given Gtk_Text_Attributes by one (this counter is initially set to 1 when this structure is created).

### Unref

- Goto spec in source
- Goto body in source

    procedure Unref (Values: Gtk_Text_Attributes);

Decrease the reference counter by one. When it reaches zero, the Gtk_Text_Attributes is automatically deallocated.

### Copy

- Goto spec in source
- Goto body in source

    function Copy (Src: Gtk_Text_Attributes) return Gtk_Text_Attributes;

Create a copy of the given Gtk_Text_Attributes structure.

### Copy_Values

- Goto spec in source
- Goto body in source

    procedure Copy_Values (Src: Gtk_Text_Attributes;Dest: Gtk_Text_Attributes);

Copy the values from Src into Dest so that Dest has the same values as Src. Free existing values in Dest. Dest's reference counter is preserved.

### Set_Rise

- Goto spec in source
- Goto body in source

    procedure Set_Rise (Appearance: Gtk_Text_Appearance;Rise: Gint);

### Get_Rise

- Goto spec in source
- Goto body in source

    function Get_Rise (Appearance: Gtk_Text_Appearance) return Gint;

Offset of the text above the baseline (or below if negative)

### Set_Underline

- Goto spec in source
- Goto body in source

    procedure Set_Underline (Appearance: Gtk_Text_Appearance;Underline: Pango.Enums.Underline);

### Get_Underline

- Goto spec in source
- Goto body in source

    function Get_Underline (Appearance: Gtk_Text_Appearance) return Pango.Enums.Underline;

Set the underline mode

### Set_Strikethrough

- Goto spec in source

    procedure Set_Strikethrough (Appearance: Gtk_Text_Appearance;Strikethrough: Boolean);

### Get_Strikethrough

- Goto spec in source

    function Get_Strikethrough (Appearance: Gtk_Text_Appearance) return Boolean;

Whether to strike through the text

### Set_Fg_Color

- Goto spec in source
- Goto body in source

    procedure Set_Fg_Color (Appearance: Gtk_Text_Appearance;Color: Gdk.Color.Gdk_Color);

### Get_Fg_Color

- Goto spec in source
- Goto body in source

    function Get_Fg_Color (Appearance: Gtk_Text_Attributes) return Gdk.Color.Gdk_Color;

The color used to display the text

### Set_Bg_Color

- Goto spec in source
- Goto body in source

    procedure Set_Bg_Color (Appearance: Gtk_Text_Appearance;Color: Gdk.Color.Gdk_Color);

### Get_Bg_Color

- Goto spec in source
- Goto body in source

    function Get_Bg_Color (Appearance: Gtk_Text_Attributes) return Gdk.Color.Gdk_Color;

The background color for the text

### Set_Fg_Stipple

- Goto spec in source
- Goto body in source

    procedure Set_Fg_Stipple (Appearance: Gtk_Text_Appearance;Stipple: Gdk.Gdk_Bitmap);

### Get_Fg_Stipple

- Goto spec in source
- Goto body in source

    function Get_Fg_Stipple (Appearance: Gtk_Text_Attributes) return Gdk.Gdk_Bitmap;

The pattern used in the foreground

### Set_Bg_Stipple

- Goto spec in source
- Goto body in source

    procedure Set_Bg_Stipple (Appearance: Gtk_Text_Appearance;Stipple: Gdk.Gdk_Bitmap);

### Get_Bg_Stipple

- Goto spec in source
- Goto body in source

    function Get_Bg_Stipple (Appearance: Gtk_Text_Attributes) return Gdk.Gdk_Bitmap;

The pattern used in the background

### Set_Font

- Goto spec in source
- Goto body in source

    procedure Set_Font (Text_Attr: Gtk_Text_Attributes;Font: Pango.Font.Pango_Font_Description);

### Get_Font

- Goto spec in source
- Goto body in source

    function Get_Font (Text_Attr: Gtk_Text_Attributes) return Pango.Font.Pango_Font_Description;

Return the Pango_Font_Description associated to the given Gtk_Text_Attributes.

### Set_Justification

- Goto spec in source
- Goto body in source

    procedure Set_Justification (Text_Attr: Gtk_Text_Attributes;Justification: Gtk.Enums.Gtk_Justification);

### Get_Justification

- Goto spec in source
- Goto body in source

    function Get_Justification (Text_Attr: Gtk_Text_Attributes) return Gtk.Enums.Gtk_Justification;

Set the justification for this attributes

### Set_Direction

- Goto spec in source
- Goto body in source

    procedure Set_Direction (Text_Attr: Gtk_Text_Attributes;Direction: Gtk.Enums.Gtk_Text_Direction);

### Get_Direction

- Goto spec in source
- Goto body in source

    function Get_Direction (Text_Attr: Gtk_Text_Attributes) return Gtk.Enums.Gtk_Text_Direction;

Set the text direction for this attributes

### Set_Font_Scale

- Goto spec in source
- Goto body in source

    procedure Set_Font_Scale (Text_Attr: Gtk_Text_Attributes;Scale: Gdouble);

### Get_Font_Scale

- Goto spec in source
- Goto body in source

    function Get_Font_Scale (Text_Attr: Gtk_Text_Attributes) return Gdouble;

Set the scaling to use for the font

### Set_Left_Margin

- Goto spec in source
- Goto body in source

    procedure Set_Left_Margin (Text_Attr: Gtk_Text_Attributes;Margin: Gint);

### Get_Left_Margin

- Goto spec in source
- Goto body in source

    function Get_Left_Margin (Text_Attr: Gtk_Text_Attributes) return Gint;

Set the left margin

### Set_Right_Margin

- Goto spec in source
- Goto body in source

    procedure Set_Right_Margin (Text_Attr: Gtk_Text_Attributes;Margin: Gint);

### Get_Right_Margin

- Goto spec in source
- Goto body in source

    function Get_Right_Margin (Text_Attr: Gtk_Text_Attributes) return Gint;

Set the right margin

### Set_Indent

- Goto spec in source
- Goto body in source

    procedure Set_Indent (Text_Attr: Gtk_Text_Attributes;Margin: Gint);

### Get_Indent

- Goto spec in source
- Goto body in source

    function Get_Indent (Text_Attr: Gtk_Text_Attributes) return Gint;

Amount to indent the paragraph

### Set_Pixels_Above_Line

- Goto spec in source
- Goto body in source

    procedure Set_Pixels_Above_Line (Text_Attr: Gtk_Text_Attributes;Margin: Gint);

### Get_Pixels_Above_Line

- Goto spec in source
- Goto body in source

    function Get_Pixels_Above_Line (Text_Attr: Gtk_Text_Attributes) return Gint;

Set the number of blank pixels above paragraphs

### Set_Pixels_Below_Line

- Goto spec in source
- Goto body in source

    procedure Set_Pixels_Below_Line (Text_Attr: Gtk_Text_Attributes;Margin: Gint);

### Get_Pixels_Below_Line

- Goto spec in source
- Goto body in source

    function Get_Pixels_Below_Line (Text_Attr: Gtk_Text_Attributes) return Gint;

Set the number of blank pixels below paragraphs

### Set_Pixels_Inside_Wrap

- Goto spec in source
- Goto body in source

    procedure Set_Pixels_Inside_Wrap (Text_Attr: Gtk_Text_Attributes;Margin: Gint);

### Get_Pixels_Inside_Wrap

- Goto spec in source
- Goto body in source

    function Get_Pixels_Inside_Wrap (Text_Attr: Gtk_Text_Attributes) return Gint;

Set the number of pixels between wrapped lines in a paragraph

### Set_Wrap_Mode

- Goto spec in source
- Goto body in source

    procedure Set_Wrap_Mode (Text_Attr: Gtk_Text_Attributes;Mode: Gtk.Enums.Gtk_Wrap_Mode);

### Get_Wrap_Mode

- Goto spec in source
- Goto body in source

    function Get_Wrap_Mode (Text_Attr: Gtk_Text_Attributes) return Gtk.Enums.Gtk_Wrap_Mode;

Set the wrapping mode

### Set_Invisible

- Goto spec in source

    procedure Set_Invisible (Text_Attr: Gtk_Text_Attributes;Invisible: Boolean);

### Get_Invisible

- Goto spec in source

    function Get_Invisible (Text_Attr: Gtk_Text_Attributes) return Boolean;

Whether the text is invisible

### Set_Bg_Full_Height

- Goto spec in source

    procedure Set_Bg_Full_Height (Text_Attr: Gtk_Text_Attributes;Full_Height: Boolean);

### Get_Bg_Full_Height

- Goto spec in source

    function Get_Bg_Full_Height (Text_Attr: Gtk_Text_Attributes) return Boolean;

Whether the background occupies the full line height rather than just the area occupied by the text.

### Set_Editable

- Goto spec in source

    procedure Set_Editable (Text_Attr: Gtk_Text_Attributes;Editable: Boolean);

### Get_Editable

- Goto spec in source

    function Get_Editable (Text_Attr: Gtk_Text_Attributes) return Boolean;

Whether the text is editable

### Set_Tabs

- Goto spec in source
- Goto body in source

    procedure Set_Tabs (Text_Attr: Gtk_Text_Attributes;Tabs: Pango.Tabs.Pango_Tab_Array);

### Get_Tabs

- Goto spec in source
- Goto body in source

    function Get_Tabs (Text_Attr: Gtk_Text_Attributes) return Pango.Tabs.Pango_Tab_Array;

Set the default tab stops for paragraphs

### Get_Appearance

- Goto spec in source
- Goto body in source

    function Get_Appearance (Text_Attr: Gtk_Text_Attributes) return Gtk_Text_Appearance;

Return the appearance of the text. This can be modified with the subprograms above.