neoscore.interface.path_interface
- class neoscore.interface.path_interface.ResolvedMoveTo[source]
Bases:
tuple
A canvas-space move-to element.
- property x
- property y
- class neoscore.interface.path_interface.ResolvedLineTo[source]
Bases:
tuple
A canvas-space line-to element.
- property x
- property y
- class neoscore.interface.path_interface.ResolvedCurveTo[source]
Bases:
tuple
A canvas-space curve-to element.
- property c1_x
- property c1_y
- property c2_x
- property c2_y
- property end_x
- property end_y
- neoscore.interface.path_interface.ResolvedPathElement
A path element whose position is relative to its path
alias of
Union
[ResolvedMoveTo
,ResolvedLineTo
,ResolvedCurveTo
]
- class neoscore.interface.path_interface.PathInterface[source]
Bases:
PositionedObjectInterface
Interface for a generic graphic path object.
- __init__(pos: Point, parent: Optional[PositionedObjectInterface], scale: float, rotation: float, transform_origin: Point, brush: BrushInterface, pen: PenInterface, elements: List[ResolvedPathElement], background_brush: Optional[BrushInterface] = None, clip_start_x: Optional[Unit] = None, clip_width: Optional[Unit] = None) None
- brush: BrushInterface
- pen: PenInterface
- elements: List[ResolvedPathElement]
- background_brush: Optional[BrushInterface] = None
- clip_start_x: Optional[Unit] = None
The local starting position of the drawn region in the glyph.
Use
None
to render from the start