1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Read-only view of parameter state consumed by the pure-library
//! rendering and interaction functions (`widgets::draw`,
//! `interaction::dispatch`).
//!
//! Callers build a `ParamSnapshot` per frame from their own parameter
//! store - typically `BuiltinEditor` forwards `PluginContext` + `Params`
//! accesses, but any plugin that owns its own frame can populate it
//! from whatever source it likes.
use crateWidgetType;
/// Immutable view of one frame's worth of parameter state.
///
/// Each field is a borrowed closure, so the snapshot itself is cheap
/// to construct - no copying of values up front. Closures are read
/// on demand as widgets/dispatch need them.