TextTag
Object Hierarchy:
Description:
You may wish to begin by reading the text widget conceptual overview 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 “gtk4-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: gtk4
Content:
Properties:
- public bool accumulative_margin { get; set; }
Whether the margins accumulate or override each other.
- public bool allow_breaks { get; set; }
- public bool allow_breaks_set { get; set; }
- public string background { set; }
- public bool background_full_height { get; set; }
- public bool background_full_height_set { get; set; }
- 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 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 insert_hyphens { get; set; }
- public bool insert_hyphens_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 Overline overline { get; set; }
- public RGBA overline_rgba { owned get; set; }
- public bool overline_rgba_set { get; set; }
- public bool overline_set { get; set; }
- public string paragraph_background { set; }
The paragraph background color as a string.
- 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 ShowFlags show_spaces { get; set; }
- public bool show_spaces_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.
Inherited Members:
All known members inherited from class GLib.Object