FL.objects.Anchor.Anchor
- class FL.objects.Anchor.Anchor(anchor_or_name: Anchor | str | None = None, x: int = 0, y: int = 0)
Bases:
CopyableAnchor - class to represent Anchor point
- __init__(anchor_or_name: Anchor | str | None = None, x: int = 0, y: int = 0) None
Integer values are accepted as coordinates.
Methods
Layer(masterindex)Returns point for the master masterindex.
SetLayer(masterindex, point)Set the point for the master masterindex.
Transform(m)Applies Matrix transformation to the Anchor (see Matrix)
__init__([anchor_or_name, x, y])Integer values are accepted as coordinates.
Attributes
Behaves like the mark attribute of the Glyph object
Anchor's name as a string
Position of the anchor as a Point object
Anchors's parent object, Glyph
Horizontal position of the anchor
Vertical position of the anchor
- Transform(m: Matrix) None
Applies Matrix transformation to the Anchor (see Matrix)
- Parameters:
m (Matrix) – The transformation matrix