Expand description
Drawing helpers on GlyphBuffer that skins repeat: a panel with
a title set into its top border, a meter bar that shows how full
something is, a line print_centred in a rectangle and a line
print_cut to a width (with cut, the text it prints).
Each counts cells as GlyphBuffer::print does: one a char, two a
wide one (GlyphBuffer::widths).
Structs§
- Panel
Look - How a
GlyphBuffer::panellooks: its border’s style and colour, its title’s colour, and the text colour and background it is cleared to.
Functions§
- cut
textin at mostwcells, measured withwidths: cut, its last cell a…, if it is longer. A wide character that would reach that cell goes too.- meter_
fill - How many of a meter’s
cellsare full when it showsfilledofof.