Skip to content

fontlab_glyport.plugins.base · declarations 001

Back to fontlab_glyport.plugins.base

PLUGIN_CLASSES module-attribute

PLUGIN_CLASSES

SDK_REEXPORTS module-attribute

SDK_REEXPORTS

make_plugins_module

make_plugins_module(env: PluginEnv, extras: Mapping[str, Any] | None = None) -> ModuleType

GlyphsApp.plugins: the seven classes bound to env, SDK helpers and the SDK's re-exported Cocoa/GlyphsApp names that glyport provides (extras).

pathForResource

pathForResource(resourceName, extension, path=None)

SDK helper: the bundle resource's path, or None when it does not exist.

plugin_image

plugin_image(qt: Any, plugin: Any, image: Any) -> Any

An SDK icon (self.icon): an NSImage as is, or a resource name resolved in the plugin's bundle ("ExportIcon" -> ExportIcon.tiff).

plugin_resources

plugin_resources(plugin: Any) -> Path | None

The bundle Resources folder of the file defining plugin's class.

setUpMenuHelper

setUpMenuHelper(menu, items, defaultTarget) -> None

SDK helper: add {"name", "action", "target", "state", "index"} entries.