💥 Move re-exports to a prelude module

So you can import everything at once, because you're likely going to
need at least 90% of it anyways.
This commit is contained in:
Robbert van der Helm
2022-03-03 23:23:51 +01:00
parent f581294d7b
commit 4c0b07c578
14 changed files with 43 additions and 58 deletions

View File

@@ -7,7 +7,7 @@ use baseview::{Size, WindowHandle, WindowOpenOptions, WindowScalePolicy};
use crossbeam::atomic::AtomicCell;
use egui::Context;
use egui_baseview::EguiWindow;
use nih_plug::{Editor, ParamSetter, ParentWindowHandle};
use nih_plug::prelude::{Editor, GuiContext, ParamSetter, ParentWindowHandle};
use parking_lot::RwLock;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
@@ -88,7 +88,7 @@ where
fn spawn(
&self,
parent: ParentWindowHandle,
context: Arc<dyn nih_plug::GuiContext>,
context: Arc<dyn GuiContext>,
) -> Box<dyn std::any::Any + Send + Sync> {
let update = self.update.clone();
let state = self.user_state.clone();

View File

@@ -2,7 +2,7 @@ use egui::{vec2, Response, Sense, Stroke, TextStyle, Ui, Vec2, Widget, WidgetTex
use lazy_static::lazy_static;
use super::util;
use nih_plug::{Param, ParamSetter};
use nih_plug::prelude::{Param, ParamSetter};
/// When shift+dragging a parameter, one pixel dragged corresponds to this much change in the
/// noramlized parameter.