Skip to main content

Module editor

Module editor 

Source

Structs§

ClosureBridge
Adapter that implements EditorBridge over per-method closures.
PluginContext
Context passed to Editor::open. Carries:
SendPtr
A raw pointer wrapper that is Send + Sync.

Enums§

RawWindowHandle
Raw platform window handle for GUI parenting.

Traits§

Editor
Plugin GUI editor.
EditorBridge
Bridge between the editor and the host / plugin. Format wrappers (CLAP / VST3 / VST2 / AU / AAX / LV2) implement this trait - or build a ClosureBridge from per-method closures - and pass an Arc<dyn EditorBridge> to the editor through PluginContext.
PluginContextReadF32
f32-precision parameter reads on PluginContext. Brought into scope by truce::prelude / truce::prelude32 / truce::prelude64m (the f32-buffer preludes). GUI binding crates (slint, egui, iced) take f32 natively, so this is the common case.
PluginContextReadF64
f64-precision parameter reads on PluginContext. Brought into scope by truce::prelude64. Same surface as PluginContextReadF32 but returns the bridge’s f64 value directly without narrowing.

Functions§

for_test_params
Build a PluginContext backed only by params. All write closures are no-ops; reads delegate to the params Arc; the transport reports the deterministic crate::events::TransportInfo::for_screenshot state so screenshot tests stay reproducible across CI runs.