Gtk.TextBuffer::apply-tag

function callback(text_buffer, tag:Gtk.TextTag, start:Gtk.TextIter, end:Gtk.TextIter, ):void;

The ::apply-tag signal is emitted to apply a tag to a range of text in a Gtk.TextBuffer. Applying actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the start and end iters (or has to revalidate them).

See also: Gtk.TextBuffer.prototype.apply_tag, Gtk.insert_with_tags, Gtk.TextBuffer.prototype.insert_range.

text_buffer

instance of Gtk.TextBuffer that is emitting the signal

tag

the applied tag

start

the start of the range the tag is applied to

end

the end of the range the tag is applied to