ltk

Module text

Source
Expand description

Single- or multi-line text: a font-sized, coloured, aligned string that either stays on one line (truncating with an ellipsis on overflow) or word-wraps to the layout width.

Structs§

  • A run of text rendered with a size, colour, alignment and optional font, either word-wrapped or kept on one line with ellipsis truncation.

Enums§

  • Horizontal alignment of text within its layout rect.

Constants§

  • Extra width a wrapping Text needs beyond its widest line: the lines wrap to the rect less this much, and a left-aligned line is inset by it. A host that sizes rects from its own measurement must add it.