macro_rules! layout {
($title:expr, $subtitle:expr, $knob_size:expr, { $($body:tt)* }) => { ... };
}Expand description
Declarative layout DSL for plugin GUIs.
§Example
ⓘ
use truce_gui_types::layout;
fn gui_layout() -> truce_gui_types::layout::PluginLayout {
layout!("MY PLUGIN", "V1.0", 50.0, {
row {
knob(ID_GAIN, "Gain")
slider(ID_PAN, "Pan")
toggle(ID_BYPASS, "Bypass")
meter(&[METER_L, METER_R], "Level")
}
section("FILTER") {
knob(ID_CUTOFF, "Cutoff")
knob(ID_RESO, "Reso")
}
})
}