Gtk.TextBuffer::insert-text

function callback(text_buffer, location:Gtk.TextIter, text:String, len:Number, ):void;

The ::insert-text signal is emitted to insert text in a Gtk.TextBuffer. Insertion actually occurs in the default handler.

Note that if your handler runs before the default handler it must not invalidate the location iter (or has to revalidate it). The default signal handler revalidates it to point to the end of the inserted text.

See also: Gtk.TextBuffer.prototype.insert, Gtk.TextBuffer.prototype.insert_range.

text_buffer

instance of Gtk.TextBuffer that is emitting the signal

location

position to insert text in @textbuffer

text

the UTF-8 text to be inserted

len

length of the inserted text in bytes