awsc.termui.alignment.TopLeftDimensionAnchor

class awsc.termui.alignment.TopLeftDimensionAnchor(left, top)

A TopLeft anchor that allows dimension specifications for each axis. If not needed, use TopLeftAnchor for better performance.

Methods

anchor(parent)

Returns the position of the anchor point of the block.

topleft(dim, parent)

Returns the position of the top left corner of the anchored block.

__init__(left, top)

Initializes a TopLeftAnchor object.

Parameters:
leftint

The horizontal offset from the top left corner.

topint

The vertical offset from the top left corner.

Methods

__init__(left, top)

Initializes a TopLeftAnchor object.

anchor(parent)

Returns the position of the anchor point of the block.

topleft(dim, parent)

Returns the position of the top left corner of the anchored block.