Skip to main content

Module align

Module align 

Source
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.
VerticalCenter
Vertically centres a renderable in the options’ height (else the console height). Mirrors the deprecated rich.align.VerticalCenter.

Enums§

HorizontalAlign
Where to position content within an available width. Shared by Align, Rule titles, and Panel titles.
VerticalAlign
Where to position content within an available height. Mirrors rich.align.VerticalAlignMethod.