Gtk.TextView.prototype.get_buffer

function get_buffer():Gtk.TextBuffer {
    // Gjs wrapper for gtk_text_view_get_buffer()
}

Returns the Gtk.TextBuffer being displayed by this text view. The reference count on the buffer is not incremented; the caller of this function won't own a new reference.

Returns

a Gtk.TextBuffer