Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates.
visible_rect
Convert to window coordinates with buffer_to_window_coords.
a TextView
rectangle to fill