Next: , Previous: Package_Gtk.Text, Up: Top



Package Gtk.Text_Attributes

This package defines the Gtk_Text_Attributes type.

Types

type Gtk_Text_Attributes is new Glib.C_Proxy;




Subprograms
procedure Gtk_New (Text_Attr : out Gtk_Text_Attributes);
Create a new Gtk_Text_Attributes structure.

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

procedure Unref (Values : Gtk_Text_Attributes);
Decrease the reference counter by one. When it reaches zero,
the Gtk_Text_Attributes is automatically deallocated.

function Copy (Src : Gtk_Text_Attributes) return Gtk_Text_Attributes;
Create a copy of the given Gtk_Text_Attributes structure.

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.

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.

procedure Set_Font (Text_Attr : Gtk_Text_Attributes; Font : Pango.Font.Pango_Font_Description);
Set the Pango_Font_Description associated to the given
Gtk_Text_Attributes.