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.
function Copy
(Text_Attr : Gtk_Text_Attributes) return Gtk_Text_Attributes
Copies Src and returns a new Gtk.Text_Attributes.Gtk_Text_Attributes.
a copy of Src, free with Gtk.Text_Attributes.Unref
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.
another Gtk.Text_Attributes.Gtk_Text_Attributes
function From_Object_Free (B : access Gtk_Text_Appearance) return Gtk_Text_Appearance
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.
function Get_Type return Glib.GType
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.
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;
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;
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.
function Ref (Text_Attr : Gtk_Text_Attributes) return Gtk_Text_Attributes
Increments the reference count on Values.
the Gtk.Text_Attributes.Gtk_Text_Attributes that were passed in
procedure Unref (Text_Attr : Gtk_Text_Attributes)
Decrements the reference count on Values, freeing the structure if the reference count reaches 0.