Gtk.Text_Attributes

Entities

Record Types

Subprograms

Description

Using Gtk.Text_Attributes.Gtk_Text_Attributes directly should rarely be necessary. It's primarily useful with Gtk.Text_Iter.Get_Attributes. As with most GTK+ structs, the fields in this struct should only be read, never modified directly.

Copy

function Copy
   (Text_Attr : Gtk_Text_Attributes) return Gtk_Text_Attributes

Copies Src and returns a new Gtk.Text_Attributes.Gtk_Text_Attributes.

Parameters
Text_Attr
Return Value

a copy of Src, free with Gtk.Text_Attributes.Unref

Copy_Values

procedure Copy_Values
   (Text_Attr : Gtk_Text_Attributes;
    Dest      : in out Gtk_Text_Attributes)

Copies the values from Src to Dest so that Dest has the same values as Src. Frees existing values in Dest.

Parameters
Text_Attr
Dest

another Gtk.Text_Attributes.Gtk_Text_Attributes

From_Object_Free

function From_Object_Free (B : access Gtk_Text_Appearance) return Gtk_Text_Appearance
Parameters
B
Return Value

From_Object_Free

function From_Object_Free (B : access Gtk_Text_Attributes) return Gtk_Text_Attributes

Using Gtk.Text_Attributes.Gtk_Text_Attributes directly should rarely be necessary. It's primarily useful with Gtk.Text_Iter.Get_Attributes. As with most GTK+ structs, the fields in this struct should only be read, never modified directly.

Parameters
B
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_New

procedure Gtk_New (Text_Attr : out Gtk_Text_Attributes)

Creates a Gtk.Text_Attributes.Gtk_Text_Attributes, which describes a set of properties on some text.

Parameters
Text_Attr

Gtk_Text_Appearance

type Gtk_Text_Appearance is record
   Bg_Color : Gdk.Color.Gdk_Color;
   Fg_Color : Gdk.Color.Gdk_Color;
   Rise : Glib.Gint := 0;
   Underline : Guint;
   Strikethrough : Guint;
   Draw_Bg : Guint;
   Inside_Selection : Guint;
   Is_Text : Guint;
end record;
Record fields
Bg_Color
Fg_Color
Rise
Underline
Strikethrough
Draw_Bg
Inside_Selection
Is_Text

Gtk_Text_Attributes

type Gtk_Text_Attributes is record
   Refcount : Guint;
   Appearance : Gtk_Text_Appearance;
   Justification : Gtk.Enums.Gtk_Justification;
   Direction : Gtk.Enums.Gtk_Text_Direction;
   Font : Pango.Font.Pango_Font_Description;
   Font_Scale : Gdouble;
   Left_Margin : Glib.Gint := 0;
   Right_Margin : Glib.Gint := 0;
   Indent : Glib.Gint := 0;
   Pixels_Above_Lines : Glib.Gint := 0;
   Pixels_Below_Lines : Glib.Gint := 0;
   Pixels_Inside_Wrap : Glib.Gint := 0;
   Tabs : System.Address;
   Wrap_Mode : Gtk.Enums.Gtk_Wrap_Mode;
   Language : System.Address;
   Pg_Bg_Color : Gdk.Color.Gdk_Color;
   Invisible : Guint;
   Bg_Full_Height : Guint;
   Editable : Guint;
   No_Fallback : Guint;
   Pg_Bg_Rgba : Gdk.RGBA.Gdk_RGBA;
   Letter_Spacing : Glib.Gint := 0;
end record;
Record fields
Refcount
Appearance
Justification
Direction
Font
Font_Scale
Left_Margin
Right_Margin
Indent
Pixels_Above_Lines
Pixels_Below_Lines
Pixels_Inside_Wrap
Tabs
Wrap_Mode
Language
Pg_Bg_Color
Invisible
Bg_Full_Height
Editable
No_Fallback
Pg_Bg_Rgba
Letter_Spacing

Gtk_Text_Attributes_New

function Gtk_Text_Attributes_New return Gtk_Text_Attributes

Creates a Gtk.Text_Attributes.Gtk_Text_Attributes, which describes a set of properties on some text.

Return Value

Ref

function Ref (Text_Attr : Gtk_Text_Attributes) return Gtk_Text_Attributes

Increments the reference count on Values.

Parameters
Text_Attr
Return Value

the Gtk.Text_Attributes.Gtk_Text_Attributes that were passed in

Unref

procedure Unref (Text_Attr : Gtk_Text_Attributes)

Decrements the reference count on Values, freeing the structure if the reference count reaches 0.

Parameters
Text_Attr