Returns the range of positions which are currently visible to the user.
Only valid when the buffer is viewed.
The start box is filled with first position visible to the user, unless start is null. The end box is filled with last position visible to the user, unless end is null.