render/box_drawing library

Classes

ArcOp
BoxOp
A primitive draw op for a box-drawing/block glyph. Pure data so geometry is unit-testable independent of a Canvas.
DashOp
LineOp
RectOp

Functions

boxOps(int cp, Rect cell, double lineWidth) → List<BoxOp>
Returns the draw ops for cp within cell. Empty if cp is not handled programmatically (caller falls back to the font glyph).
isBoxDrawing(int cp) → bool
paintBoxGlyph(Canvas canvas, Rect cell, int cp, Color fg, double lineWidth) → bool
Renders cp's ops into cell with fg. No-op (returns false) if cp has no programmatic ops, so the caller can fall back to the font glyph.