TextTag
Object Hierarchy:
Description:
You may wish to begin by reading the [text widget conceptual overview](TextWidget.
html) which gives an overview of all the objects and data types related to the text widget and how they work together.
Tags should be in the TextTagTable for a given TextBuffer before using them with that buffer.
create_tag is the best way to create tags. See “gtk3-demo” for numerous examples.
For each property of TextTag, there is a “set” property, e.g. “font-set” corresponds to “font”. These “set” properties reflect whether a property has been set or not. They are maintained by GTK+ and you should not set them independently.
Namespace: Gtk
Package: gtk+-3.0
Content:
Properties:
- public bool accumulative_margin { get; set; }
Whether the margins accumulate or override each other.
- public string background { set; }
- public bool background_full_height { get; set; }
- public bool background_full_height_set { get; set; }
- public Color background_gdk { owned get; set; }
Background color as a Color .
- public RGBA background_rgba { owned get; set; }
Background color as a RGBA .
- public bool background_set { get; set; }
- public TextDirection direction { get; set; }
- public bool editable { get; set; }
- public bool editable_set { get; set; }
- public bool fallback { get; set; }
Whether font fallback is enabled.
- public bool fallback_set { get; set; }
- public string family { owned get; set; }
- public bool family_set { get; set; }
- public string font { owned get; set; }
Font description as string, e.
- public FontDescription font_desc { owned get; set; }
- public string font_features { owned get; set; }
OpenType font features, as a string.
- public bool font_features_set { get; set; }
- public string foreground { set; }
- public Color foreground_gdk { owned get; set; }
Foreground color as a Color .
- public RGBA foreground_rgba { owned get; set; }
Foreground color as a RGBA .
- public bool foreground_set { get; set; }
- public int indent { get; set; }
- public bool indent_set { get; set; }
- public bool invisible { get; set; }
Whether this text is hidden.
- public bool invisible_set { get; set; }
- public Justification justification { get; set; }
- public bool justification_set { get; set; }
- public string language { owned get; set; }
The language this text is in, as an ISO code.
- public bool language_set { get; set; }
- public int left_margin { get; set; }
- public bool left_margin_set { get; set; }
- public int letter_spacing { get; set; }
Extra spacing between graphemes, in Pango units.
- public bool letter_spacing_set { get; set; }
- public string name { owned get; construct; }
- public string paragraph_background { set; }
The paragraph background color as a string.
- public Color paragraph_background_gdk { owned get; set; }
The paragraph background color as a Color.
- public RGBA paragraph_background_rgba { owned get; set; }
The paragraph background color as a RGBA.
- public bool paragraph_background_set { get; set; }
- public int pixels_above_lines { get; set; }
- public bool pixels_above_lines_set { get; set; }
- public int pixels_below_lines { get; set; }
- public bool pixels_below_lines_set { get; set; }
- public int pixels_inside_wrap { get; set; }
- public bool pixels_inside_wrap_set { get; set; }
- public int right_margin { get; set; }
- public bool right_margin_set { get; set; }
- public int rise { get; set; }
- public bool rise_set { get; set; }
- public double scale { get; set; }
- public bool scale_set { get; set; }
- public int size { get; set; }
- public double size_points { get; set; }
- public bool size_set { get; set; }
- public Stretch stretch { get; set; }
- public bool stretch_set { get; set; }
- public bool strikethrough { get; set; }
- public RGBA strikethrough_rgba { owned get; set; }
This property modifies the color of strikeouts.
- public bool strikethrough_rgba_set { get; set; }
If the strikethrough_rgba property has been set.
- public bool strikethrough_set { get; set; }
- public Style style { get; set; }
- public bool style_set { get; set; }
- public TabArray tabs { owned get; set; }
- public bool tabs_set { get; set; }
- public Underline underline { get; set; }
- public RGBA underline_rgba { owned get; set; }
This property modifies the color of underlines.
- public bool underline_rgba_set { get; set; }
If the underline_rgba property has been set.
- public bool underline_set { get; set; }
- public Variant variant { get; set; }
- public bool variant_set { get; set; }
- public int weight { get; set; }
- public bool weight_set { get; set; }
- public WrapMode wrap_mode { get; set; }
- public bool wrap_mode_set { get; set; }
Creation methods:
Methods:
- public void changed (bool size_changed)
Emits the tag_changed signal on the TextTagTable where the tag is included.
- public int get_priority ()
Get the tag priority.
- public void set_priority (int priority)
Sets the priority of a TextTag.
Signals:
- public virtual signal bool event (Object event_object, Event event, TextIter iter)
The event signal is emitted when an event occurs on a region of the buffer marked with this tag.
Inherited Members:
All known members inherited from class GLib.Object