1
0
Fork 0

Derive Debug for the editor state structs

This commit is contained in:
Robbert van der Helm 2023-03-01 19:19:54 +01:00
parent 199e836f80
commit 5a8721f63c
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ where
}
/// State for an `nih_plug_egui` editor.
#[derive(Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct EguiState {
/// The window's size in logical pixels before applying `scale_factor`.
#[serde(with = "nih_plug::params::persist::serialize_atomic_cell")]

View file

@ -233,7 +233,7 @@ pub trait IcedEditor: 'static + Send + Sync + Sized {
}
/// State for an `nih_plug_iced` editor.
#[derive(Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct IcedState {
/// The window's size in logical pixels before applying `scale_factor`.
#[serde(with = "nih_plug::params::persist::serialize_atomic_cell")]

View file

@ -83,7 +83,7 @@ pub enum ViziaTheming {
/// State for an `nih_plug_vizia` editor. The scale factor can be manipulated at runtime by changing
/// `cx.user_scale_factor`.
#[derive(Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize)]
pub struct ViziaState {
/// The window's size in logical pixels before applying `scale_factor`.
#[serde(with = "nih_plug::params::persist::serialize_atomic_cell")]