Class
GtkTextTag
Description [src]
class Gtk.TextTag : GObject.Object
{
priv: GtkTextTagPrivate*
}
A tag that can be applied to text contained in a GtkTextBuffer
.
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 GtkTextTagTable
for a given
GtkTextBuffer
before using them with that buffer.
gtk_text_buffer_create_tag()
is the best way to create tags.
See “gtk4-demo” for numerous examples.
For each property of GtkTextTag
, 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.
Instance methods
gtk_text_tag_changed
Emits the GtkTextTagTable::tag-changed
signal on the
GtkTextTagTable
where the tag is included.
Properties
Gtk.TextTag:background-full-height
Whether the background color fills the entire line height or only the height of the tagged characters.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.