Skip to content

fontlab_plugmix.tool.Tool · declarations 001

Back to fontlab_plugmix.tool.Tool

activate

activate(ctx: ToolContext) -> None

Receive an active context after FontLab switches to this tool.

cursor class-attribute

cursor: str | None

deactivate

deactivate() -> None

Release per-activation state.

double_click

double_click(event: ToolEvent) -> bool

Handle a double click.

key_down

key_down(event: ToolEvent) -> bool

Observe key press without taking FontLab shortcuts.

key_up

key_up(event: ToolEvent) -> bool

Observe key release without taking FontLab shortcuts.

kind class-attribute

kind: str

marks

marks(glyph: GlyphSnapshot | None) -> list[Mark]

Return overlay marks only while active.

move

move(event: ToolEvent) -> bool

Handle mouse move.

press

press(event: ToolEvent) -> bool

Handle mouse press.

release

release(event: ToolEvent) -> bool

Handle mouse release.