Translates a visible (pixel) rectangle to a virtual text (grid) area.
Translates a visible (pixel) rectangle to a virtual text (grid) area.
It does so by rounding down the top and left coordinate, and rounding up the right and bottom
coordinate to the next grid element. In other words, the returned area is guaranteed to fully contain
the rectangle
argument.
Opposite of toRectangle
.
Translates a visible (pixel) point to a virtual text (grid) location.
Translates a virtual text (grid) location to a visible (pixel) point.
Translates a virtual text (grid) area to a visible (pixel) rectangle.
Grid for the mono-spaced characters of a text. Can translate between cursor positions and visual pixel positions.