Index

Package: Text_Attributes

Description

package Gtk.Text_Attributes is
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.

Types

Gtk_Text_Appearance

type Gtk_Text_Appearance is record
      Bg_Color : Gdk.Color.Gdk_Color;
      Fg_Color : Gdk.Color.Gdk_Color;
      Rise : Gint;
      Underline : Guint;
      Strikethrough : Guint;
      Draw_Bg : Guint;
      Inside_Selection : Guint;
      Is_Text : Guint;
      Rgba : array_of_Gdk_RGBA (1 .. 2);
   end record;

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 : Gint;
      Right_Margin : Gint;
      Indent : Gint;
      Pixels_Above_Lines : Gint;
      Pixels_Below_Lines : Gint;
      Pixels_Inside_Wrap : Gint;
      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;
      Pg_Bg_Rgba : Gdk.RGBA.Gdk_RGBA;
      Padding : System.Address;
   end record;

Subprograms & Entries

From_Object_Free

function From_Object_Free 
(B: access Gtk_Text_Appearance) return Gtk_Text_Appearance;

From_Object_Free

function From_Object_Free 
(B: access Gtk_Text_Attributes) return Gtk_Text_Attributes;

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.

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.

Get_Type

function Get_Type return Glib.GType;

Copy_Values

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

Unref

procedure Unref 
(Text_Attr: Gtk_Text_Attributes);