Skip to content

FL.Anchor

Anchor

Anchor - class to represent Anchor point

Integer values are accepted as coordinates

CONSTRUCTOR: Anchor() - generic constructor, creates an Anchor with zero coordinates and empty name Anchor(Anchor) - copy constructor Anchor(string name, integer x, integer y) - creates an Anchor and assigns name and coordinates.

ATTRIBUTES: parent (read-only) - anchor's parent object, Glyph name (string) - anchor's name as a string x (integer) - horizontal position of the anchor y (integer) - vertical position of the anchor p (Point) - position of the anchor as a Point object

OPERATIONS:

METHODS Transform(Matrix m) - applies Matrix transformation to the Anchor(see Matrix().doc) Layer(int layer_index) - returns position for the "layer_index" master SetLayer(int layer_index, Point position) - sets "position" position for the "layer_index" master

Native bases: object

Captured native MRO: Anchor, object

Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
Layer function (self, *args: Any, **kwargs: Any) -> Any Native FL.Anchor.Layer; argument details are not documented.
SetLayer function (self, *args: Any, **kwargs: Any) -> Any Native FL.Anchor.SetLayer; argument details are not documented.
Transform function (self, *args: Any, **kwargs: Any) -> Any Native FL.Anchor.Transform; argument details are not documented.
__init__ function (self, /, *args: Any, **kwargs: Any) -> None Initialize self.