pub fn bound(ui: &mut Ui, store: &SharedStore, path: &str) -> ResponseExpand description
The editor for a store’s path, bound to it (Mode::Bound), its
descriptor read from the store: the one the path was declared with.
A path nobody declared shows as a warning, named by the path.
use egui_pop_core::param;
use egui_pop_model::ids::OwnerId;
use egui_pop_model::values::{Descriptor, Store};
let mut store = Store::new();
let d = Descriptor::float("Gain", 0.0, 2.0, 1.0);
store.declare(&OwnerId::from_static("demo"), "params/gain", d).unwrap();
let store = std::sync::Arc::new(std::sync::Mutex::new(store));
let ctx = egui::Context::default();
let _ = ctx.run_ui(egui::RawInput::default(), |ui| {
param::bound(ui, &store, "params/gain");
});