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