Patch vizia to not require pub for lenses
This commit is contained in:
parent
9c608c77f9
commit
d35276437d
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -3607,7 +3607,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
|||
[[package]]
|
||||
name = "vizia"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#8772bc3f68441fb2ae89809b5c4624be4ae21da3"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#78122bddc2bfc9ee27d84d2f4838a10f48becd34"
|
||||
dependencies = [
|
||||
"vizia_baseview",
|
||||
"vizia_core",
|
||||
|
@ -3616,7 +3616,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "vizia_baseview"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#8772bc3f68441fb2ae89809b5c4624be4ae21da3"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#78122bddc2bfc9ee27d84d2f4838a10f48becd34"
|
||||
dependencies = [
|
||||
"baseview",
|
||||
"femtovg",
|
||||
|
@ -3628,7 +3628,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "vizia_core"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#8772bc3f68441fb2ae89809b5c4624be4ae21da3"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#78122bddc2bfc9ee27d84d2f4838a10f48becd34"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"copypasta",
|
||||
|
@ -3651,7 +3651,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "vizia_derive"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#8772bc3f68441fb2ae89809b5c4624be4ae21da3"
|
||||
source = "git+https://github.com/robbert-vdh/vizia.git?branch=feature/baseview-modifiers#78122bddc2bfc9ee27d84d2f4838a10f48becd34"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
@ -63,8 +63,7 @@ enum ParamSliderEvent {
|
|||
|
||||
/// Internal param slider state the view needs to react to.
|
||||
#[derive(Lens)]
|
||||
// TODO: Lens requires everything to be marked as `pub`
|
||||
pub struct ParamSliderInternal {
|
||||
struct ParamSliderInternal {
|
||||
/// What style to use for the slider.
|
||||
style: ParamSliderStyle,
|
||||
/// Will be set to `true` when the field gets Alt+Click'ed which will replae the label with a
|
||||
|
|
|
@ -27,8 +27,7 @@ use crate::CrispParams;
|
|||
const POINT_SCALE: f32 = 0.75;
|
||||
|
||||
#[derive(Lens)]
|
||||
// TODO: Lens requires everything to be marked as `pub`
|
||||
pub struct Data {
|
||||
struct Data {
|
||||
params: Pin<Arc<CrispParams>>,
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ struct Crisp {
|
|||
}
|
||||
|
||||
#[derive(Params)]
|
||||
pub struct CrispParams {
|
||||
struct CrispParams {
|
||||
/// On a range of `[0, 1]`, how much of the modulated sound to mix in.
|
||||
#[id = "amount"]
|
||||
amount: FloatParam,
|
||||
|
|
|
@ -27,8 +27,7 @@ use crate::DiopserParams;
|
|||
const POINT_SCALE: f32 = 0.75;
|
||||
|
||||
#[derive(Lens)]
|
||||
// TODO: Lens requires everything to be marked as `pub`
|
||||
pub struct Data {
|
||||
struct Data {
|
||||
params: Pin<Arc<DiopserParams>>,
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ struct Diopser {
|
|||
// TODO: Some combinations of parameters can cause really loud resonance. We should limit the
|
||||
// resonance and filter stages parameter ranges in the GUI until the user unlocks.
|
||||
#[derive(Params)]
|
||||
pub struct DiopserParams {
|
||||
struct DiopserParams {
|
||||
/// The number of all-pass filters applied in series.
|
||||
#[id = "stages"]
|
||||
filter_stages: IntParam,
|
||||
|
|
|
@ -16,8 +16,7 @@ const POINT_SCALE: f32 = 0.75;
|
|||
const STYLE: &str = r#""#;
|
||||
|
||||
#[derive(Lens)]
|
||||
// TODO: Lens requires everything to be marked as `pub`
|
||||
pub struct Data {
|
||||
struct Data {
|
||||
params: Pin<Arc<GainParams>>,
|
||||
peak_meter: Arc<AtomicF32>,
|
||||
}
|
||||
|
|
|
@ -22,8 +22,7 @@ struct Gain {
|
|||
}
|
||||
|
||||
#[derive(Params)]
|
||||
// TODO: Lens requires everything to be marked as `pub`
|
||||
pub struct GainParams {
|
||||
struct GainParams {
|
||||
#[id = "gain"]
|
||||
pub gain: FloatParam,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue