Gtk.TextBuffer.prototype.set_text
function set_text(text:String, len:Number):void { // Gjs wrapper for gtk_text_buffer_set_text() }
Deletes current contents of buffer, and inserts text instead. If len is -1, text must be nul-terminated. text must be valid UTF-8.
- text
UTF-8 text to insert
- len
length of text in bytes