fontgate.fgAnchor
fgAnchor
Anchor representation
Constructors: fgAnchor() - default fgAnchor(fgAnchor) - copy fgAnchor((x, y), 'name') - create with position=(x, y) and name='name' fgAnchor(x, y, 'name') - create with position=(x, y) and name='name'
Native bases: object
Captured native MRO: fgAnchor, object
Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.
Supplemental documentation:
A font-data anchor with name, x and y attributes. position exposes its coordinates as an fgPoint. draw() sends the anchor to a segment pen; drawPoints() uses a point pen. Consult the retained constructors for copying and named coordinate forms.
Source: generated/fontgate.py: fgAnchor captured declaration
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 |
|---|---|---|---|
__init__ |
function | (self, /, *args: Any, **kwargs: Any) -> None |
Initialize self. (shared captured text) |
copy |
function | (self, arg0: fgAnchor) -> Any |
Copy data from another fgAnchor object |
data |
attribute | Any |
(uint) - data |
draw |
function | (self, penObject: Any) -> Any |
Draw the object with a segment pen |
drawPoints |
function | (self, penObject: Any) -> Any |
Draw the object with a point pen |
index |
attribute | Any |
(int) - index of object for owner's base layer |
mark |
attribute | Any |
(uint) - mark |
move |
function | (self, dx: Any, dy: Any) -> Any |
|
name |
attribute | Any |
(string) - name |
position |
attribute | Any |
(fgPoint) - coordinates as fgPoint |
round |
function | (self) -> Any |
Round anchor coordinates |
scale |
function | (self, *args: Any, **kwargs: Any) -> Any |
Scale((scale_x, scale_y)[, (center_x, center_y)]) - scale anchor by (scale_x, scale_y) with center=(center_x, center_y) or (0,0) if not defined |
transform |
function | (self, arg0: fgMatrix) -> Any |
Transform anchor coordinates by matrix |
x |
attribute | Any |
(int/double) - horizontal coordinate |
y |
attribute | Any |
(int/double) - vertical coordinate |