Skip to main content

Module align

Module align 

Source
Expand description

Horizontal alignment.

Port of upstream rich/align.py (horizontal axis). Align pads a child renderable to fill the available width, positioning it left, center, or right.

Slice scope: horizontal alignment. Vertical alignment (VerticalAlign) and explicit width/pad options are deferred with the rest of align.py.

Structs§

Align
Aligns a child renderable within the available width. Mirrors rich.align.Align.

Enums§

HorizontalAlign
Where to position content within an available width. Shared by Align, Rule titles, and Panel titles.