fontlabapp.studios.layer_manager._shared · declarations 001
Back to fontlabapp.studios.layer_manager._shared
STALE
module-attribute
STALE
append_note
append_note(text: str, result: dict[str, Any]) -> str
edit_guards.append_note: the result text and its pending note.
apply_editor
apply_editor(tool: Tool, title: str, work: list[Any], editor: Any, *, allow_bases: bool = False) -> Any
masters.layers.writer.apply_work through tool.shell.history; None when refused.
prepare before history, write and settle per layer inside it,
the removed native objects retained, check as read-back; a read-back
gap raises the shared history.unstored_error as the original did.
backends
backends() -> Any
The reused App backends (tests replace this).
commit
commit(tool: Tool, title: str, layers: Sequence[Any], glyphs: Sequence[Any], mutate: Callable[[], Any], *, read_back: Callable[[], Iterable[str]] | None = None, retain: Sequence[Any] = (), allow_bases: bool = False, window: int | None = None) -> Any
ONE named Undo step through tool.shell.history; None when refused.
layers=[] is the originals' layer-creating write (new layers are
returned by mutate). window is passed only when given (the
Copy Layers From Font selection-window and no-editors guards).
hline
hline(layout: Any) -> Any
ident
ident(item: Any) -> int | None
int(item.id) of a native object, or None for a missing one.
Stale keys use the native id, never Python id(): PythonQt may hand
back a new wrapper for the same layer or glyph on each read.
label
label(action: str, names: Iterable[str]) -> str
"Layer Manager: <action> <glyph or N glyphs>".
refusal_text
refusal_text(tool: Tool) -> str
The shell status text after a refused write; PythonQt exposes text as a property.
result_dict
result_dict(done: Any, **values: Any) -> dict[str, Any]
The originals' result dict around a Committed.
subject
subject(names: Iterable[str]) -> str
Undo-label subject: the glyph name, or "N glyphs" for several.