fontlab_glyport.plugins.host.PluginHost · declarations 001
Back to fontlab_glyport.plugins.host.PluginHost
current_font
current_font() -> Any
notify
notify(title: str, message: str) -> None
register_file_format
register_file_format(file_format: Any, *, guard: Callable[..., Any] | None = None) -> object
guard(owner, function, *args) runs the export in the plugin's
context (PluginEnv.guard); a host calls the export through it.
register_menu
register_menu(menu: str, item: Any, index: int | None = None) -> object
register_painter
register_painter(phase: str, callback: Callable[[PaintContext], None], *, document_id: Any = None, layer_filter: str = 'active') -> object
register_panel
register_panel(view: Any, title: str, min_height: int, max_height: int) -> object
register_tool
register_tool(tool: Any, *, guard: Callable[..., Any] | None = None, activate: Callable[[], Any] | None = None, deactivate: Callable[[], Any] | None = None) -> object
reporter_background_phase
instance-attribute
reporter_background_phase: str
restore_layer
restore_layer(layer: Any, snapshot: Any) -> None
run_dialog
run_dialog(view: Any, title: str, apply_label: str, on_close: Callable[[bool], None]) -> object
selected_layers
selected_layers() -> Sequence[Any]
snapshot_layer
snapshot_layer(layer: Any) -> Any
undo_group
undo_group(name: str) -> AbstractContextManager