Move the Params trait out of params::internals

This makes much more sense, since this trait is a cornerstone of
NIH-plug.
This commit is contained in:
Robbert van der Helm
2022-10-20 12:10:35 +02:00
parent 4f74b4b4cc
commit fb71d0fcce
12 changed files with 133 additions and 122 deletions

View File

@@ -235,7 +235,7 @@ pub trait IcedEditor: 'static + Send + Sync + Sized {
#[derive(Serialize, Deserialize)]
pub struct IcedState {
/// The window's size in logical pixels before applying `scale_factor`.
#[serde(with = "nih_plug::param::internals::serialize_atomic_cell")]
#[serde(with = "nih_plug::param::persist::serialize_atomic_cell")]
size: AtomicCell<(u32, u32)>,
/// Whether the editor's window is currently open.
#[serde(skip)]