Skip to content

fontlabapp.plugins.tool.ToolContext

ToolContext

Offer checked active glyph reads, selection and undoable edits.

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, services: Any, *, needs_components: bool=False) -> None
edit function (self, plan_fn: Any, title: str) -> Any Commit a caller-provided (work, facts, editor) through App's writer.
redraw function (self) -> None Ask FontLab to repaint the active Glyph canvas. (shared captured text)
select function (self, indices: tuple[int, ...], *, toggle: bool=False) -> None Change selection flags only; no outline geometry or history write. (shared captured text)
snapshot function (self) -> snapshot.GlyphSnapshot | None Capture through the workspace path, never CurrentGlyph().