Expand description
Horizontal alignment.
Port of upstream rich/align.py. Align pads a child renderable to fill
the available width, positioning it left, center, or right, and optionally
within a height (top, middle, bottom); VerticalCenter is upstream’s
deprecated vertical-only form.
Structs§
- Align
- Aligns a child renderable within the available width (and, with a
vertical alignment, height). Mirrors
rich.align.Align. - Vertical
Center - Vertically centres a renderable in the options’ height (else the console
height). Mirrors the deprecated
rich.align.VerticalCenter.
Enums§
- Horizontal
Align - Where to position content within an available width. Shared by
Align,Ruletitles, andPaneltitles. - Vertical
Align - Where to position content within an available height. Mirrors
rich.align.VerticalAlignMethod.