termui.alignment

This module defines classes for aligning blocks on the terminal.

AbstractAnchor()

Anchor base class defining the interface anchors must implement.

BottomLeftAnchor(left, bottom)

Anchor class which specifies a block is aligned with the bottom-left corner of the parent at a fixed offset.

CenterAnchor(xoffset, yoffset)

Anchor class which specifies a block is aligned with the center of the parent at a fixed offset.

Dimension(width, height)

Represents a width and height value.

TopLeftAnchor(left, top)

Anchor class which specifies a block is aligned with the top-left corner of the parent at a fixed offset.

TopLeftDimensionAnchor(left, top)

A TopLeft anchor that allows dimension specifications for each axis.

TopRightAnchor(right, top)

Anchor class which specifies a block is aligned with the top-right corner of the parent at a fixed offset.