Gtk.TextView.prototype.get_visible_rect
function get_visible_rect():void { // Gjs wrapper for gtk_text_view_get_visible_rect() }
Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates. Convert to window coordinates with Gtk.TextView.prototype.buffer_to_window_coords.