awsc.termui.alignment.BottomLeftAnchor
- class awsc.termui.alignment.BottomLeftAnchor(left, bottom)
Anchor class which specifies a block is aligned with the bottom-left corner of the parent at a fixed offset.
Anchor point: bottom left corner of the block.
Parent point: bottom left corner of the block.
- Attributes:
- bottomint
The vertical offset from the bottom left corner.
- leftint
The horizontal offset from the bottom left corner.
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, bottom)
Initializes a BottomLeftAnchor object.
- Parameters:
- leftint
The horizontal offset from the bottom left corner.
- bottomint
The vertical offset from the bottom left corner.
Methods
__init__
(left, bottom)Initializes a BottomLeftAnchor 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.