fontlab_glyport.plugins.fontlab_host.FontLabPluginHost
FontLabPluginHost
Source bases
Inherited member index
Source-proven inherited members; local declarations override these entries.
action— defined byfontlabapp.qt.menus.OwnedMenus.actionadd_action— defined byfontlabapp.qt.menus.OwnedMenus.add_actionadd_menu— defined byfontlabapp.qt.menus.OwnedMenus.add_menuclose— defined byfontlabapp.qt.menus.OwnedMenus.closedispatching— defined byfontlabapp.qt.menus.OwnedMenus.dispatchinghas_items— defined byfontlabapp.qt.menus.OwnedMenus.has_itemsmenu— defined byfontlabapp.qt.menus.OwnedMenus.menuown_menu— defined byfontlabapp.qt.menus.OwnedMenus.own_menutool_window— defined byfontlabapp.qt.menus.OwnedMenus.tool_window
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, qt: Any, fontlab: Any, *, error_sink: Callable[[Exception, object], object], painters: Any=None, model… |
|
current_font |
function | (self) |
|
has_callbacks |
attribute | (self) -> bool |
|
main_window |
function | (self) -> Any |
FontLab's main window; a missing one raises <code>HostUnavailable</code>. |
notify |
function | (self, title: str, message: str) -> None |
|
redraw |
function | (self) -> None |
|
register_file_format |
function | (self, file_format: Any, *, guard: Callable | None=None) -> int |
File > "Export with <title>…"; <code>guard(owner, function, *args)</code><code> (</code><code>PluginEnv.guard</code>) runs the plugin's export in its context. |
register_menu |
function | (self, menu: str, item: Any, index: int | None=None) -> int |
Add <code>item</code><code> as an owned QAction in </code><code>menu</code>; return its token. |
register_painter |
function | (self, phase, callback, *, document_id=None, layer_filter='active') |
|
register_panel |
function | (self, view: Any, title: str, min_height: int, max_height: int) -> int |
|
register_tool |
function | (self, tool: Any, *, guard: Callable | None=None, activate: Callable[[], Any] | None=None, deactivate: Callab… |
Add <code>tool</code><code> to FontLab's tools; </code><code>activate</code><code>/</code><code>deactivate</code><code> run when FontLab switches to and away from it (see </code><code>ToolBridge</code>). |
remove |
function | (self, token: object) -> None |
Undo one item, including its NSMenuItem observer (see App <code>remove</code>). |
reporter_background_phase |
attribute | (self) -> str |
Known at load, before any painter is enabled: native canvas painters draw backgrounds before the outlines; the overlay fallback after (R054). |
restore_layer |
function | (self, layer, snapshot) -> None |
|
run_dialog |
function | (self, view: Any, title: str, apply_label: str, on_close: Callable[[bool], None]) -> int |
Show <code>view</code><code> with Cancel/Apply; </code><code>on_close(applied)</code> runs once. |
selected_layers |
function | (self) |
|
snapshot_layer |
function | (self, layer) |
|
undo_group |
function | (self, name: str) -> AbstractContextManager |