Toc Gallery Index Tree Gtk.Text_Tag

Hierarchy

Description

A tag is a set of properties that can be associated with a range of text. See also Gtk.Text_Attributes. Tags should be in a Gtk_Text_Tag_Table for a given before before they are used in that buffer.

Types

  • type Gtk_Text_Tag is access all Gtk_Text_Tag_Record'Class;
  • type Gtk_Text_Tag_Record is new GObject_Record with private;

Subprograms

  • function Convert (W : Gtk_Text_Tag) return System.Address;
    function Convert (W : System.Address) return Gtk_Text_Tag;
  • procedure Gtk_New (Widget : out Gtk_Text_Tag; Name : String := "");
    Create a new Gtk_Text_Tag. Newly created tags must be added to the tags table for the buffer you intend to use them in. Gtk.Text_Tag_Table.Add (Get_Tag_Table (Buffer), Tag); See also Gtk.Text_Buffer.Create_Tag which is a more convenient way of creating a tag.
  • procedure Initialize (Widget : access Gtk_Text_Tag_Record'Class; Name : String := "");
    Internal initialization function. See the section "Creating your own widgets" in the documentation.
  • function Get_Type return Glib.GType;
    Return the internal value associated with this widget.
  • procedure Set_Priority (Tag : access Gtk_Text_Tag_Record; Priority : Gint);
    function Get_Priority (Tag : access Gtk_Text_Tag_Record) return Gint;
    Set the priority of a Gtk_Text_Tag. Valid priorities start at 0 and go to one less than Table_Size. Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag. Higher priority tags "win" if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with Gtk.Text_Buffer.Create_Tag, which adds the tag to the buffer's table automatically.

Signals

  • event
    function Handler (Tag : access Gtk_Text_Tag_Record'Class; Event_Object : out GObject; Event : Gdk.Event.Gdk_Event; Iter : access Gtk.Text_Iter.Gtk_Text_Iter_Record'Class) return Gint;
    ???

Properties

  • Background_Full_Height_Property
    Boolean
    Whether the background color fills the entire line height or
  • Background_Gdk_Property
    Gdk_Color
    Background color
  • Background_Property
    String
    Background color as a string
  • Background_Stipple_Property
    Gdk_Pixmap
    Bitmap to use as a mask when drawing the text background
  • Direction_Property
    Gtk_Text_Direction
    Text direction, e.g. right-to-left or left-to-right
  • Editable_Property
    Boolean
    Whether the text can be modified by the user
  • Family_Property
    String
    Name of the font family, e.g. Sans, Helvetica, Times, Monospace
  • Font_Desc_Property
    Pango_Font_Description
    Font description
  • Font_Property
    String
    Font description as a string
  • Foreground_Gdk_Property
    Gdk_Color
    Foreground color
  • Foreground_Property
    String
    Foreground color as a string
  • Foreground_Stipple_Property
    Gdk_Pixmap
    Bitmap to use as a mask when drawing the text foreground
  • Indent_Property
    Gint
    Amount to indent the paragraph, in pixels
  • Invisible_Property
    Boolean
    Whether this text is hidden
  • Justification_Property
    Gtk_Type_Justification
    Left, right, or center justification
  • Language_Property
    String
    Language engine code to use for rendering the text
  • Left_Margin_Property
    Gint
    Width of the left margin in pixels
  • Name_Property
    String
    Name used to refer to the text tag
  • Paragraph_Background_Gdk_Property
    Gdk_Color
    Paragraph background color as a color
  • Paragraph_Background_Property
    String
    Paragraph background color as a string
  • Pixels_Above_Lines_Property
    Gint
    Pixels of blank space above paragraphs
  • Pixels_Below_Lines_Property
    Gint
    Pixels of blank space below paragraphs
  • Right_Margin_Property
    Gint
    Width of the right margin in pixels
  • Rise_Property
    Gint
    Offset of text above the baseline (below the baseline if
  • Scale_Property
    Double
    Font size as a scale factor relative to the default font size.
  • Size_Points_Property
    Gdouble
    Font size in points
  • Size_Property
    Gint
    Font size
  • Stretch_Property
    Pango_Type_Strech
    Font strech
  • Strikethrough_Property
    Boolean
    Whether to strike through the text
  • Style_Property
    Pango.Enums.Style
    Font style
  • Tabs_Property
    Pango_Tab_Array
    Custom tabs for this text
  • Underline_Property
    Pango_Type_Underline
    Style of underline for this text
  • Variant_Property
    Pango_Type_Variant
    Font variant
  • Weight_Property
    Pango.Enums.Weight
    Font weight
  • Wrap_Mode_Property
    Gtk_Wrap_Mode
    Whether to wrap lines never, at word boundaries, or at

Alphabetical Index