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 visible (pixel) point to a virtual text (grid) location. It does so by rounding down the coordinates to the next grid element.
Opposite of toPoint
.
Translates a virtual text (grid) location to a visible (pixel) point.
Translates a virtual text (grid) location to a visible (pixel) point.
Opposite of toLocation
.
Translates a virtual text (grid) area to a visible (pixel) rectangle.
Translates a virtual text (grid) area to a visible (pixel) rectangle.
Opposite of toArea
.
Grid for the mono-spaced characters of a text. Can translate between cursor positions and visual pixel positions.