Skip to main content

Module ffi

Module ffi 

Source
Expand description

Stable ABI types for the plugin dynamic library interface.

Uses abi_stable to define types that can safely cross the Rust dynamic library boundary. The plugin exports a #[no_mangle] function that returns a PluginVTable, and the host loads it with abi_stable::library::RawLibrary.

Structs§

ActionResponseFFI
FFI-safe response from a plugin action handler.
ActiveSidebarFFI
ConfirmationDialogRequestFFI
GpuFilterContextFFI
FFI-safe GPU filter context passed from the host to the plugin.
HostApiVTable
HostSnapshotFFI
HudToolbarButtonFFI
FFI-safe HUD toolbar button registration data.
ModalDialogRequestFFI
OpenFileInfoFFI
PluginUndoRedoStateFFI
PluginVTable
VTable of function pointers exported by each plugin shared library.
ToolbarButtonFFI
FFI-safe toolbar button registration data.
UiPropertyFFI
ViewportContextMenuItemFFI
ViewportFilterFFI
FFI-safe viewport filter descriptor.
ViewportOverlayComponentRequestFFI
ViewportOverlayPointFFI
ViewportOverlayPolygonFFI
ViewportOverlayVertexFFI
ViewportSnapshotFFI

Enums§

HostLogLevelFFI
HostToolModeFFI

Constants§

PLUGIN_VTABLE_SYMBOL
Symbol name the host looks for in plugin shared libraries.

Functions§

plugin_library_filename
Returns the expected shared library filename for a plugin on the current platform, derived from the plugin id.

Type Aliases§

GetPluginVTableFn
The type of the factory function each plugin exports.