pub struct FXParam<'a, M: ProbablyMutable, P: KnowsProject, F: FXParamParent<'a, M, P>> { /* private fields */ }
Implementations
sourceimpl<'a, M: ProbablyMutable, P: KnowsProject, F: FXParamParent<'a, M, P>> FXParam<'a, M, P, F>
impl<'a, M: ProbablyMutable, P: KnowsProject, F: FXParamParent<'a, M, P>> FXParam<'a, M, P, F>
pub fn envelope(
&self,
create_if_not_exists: bool
) -> Option<Envelope<'a, P, Immutable>>
pub fn name(&self) -> String
sourcepub fn ident_string(&self) -> String
pub fn ident_string(&self) -> String
identifying string (:wet, :bypass, or a string returned from GetParamIdent)
pub fn value_range(&self) -> Range<f64>
pub fn value(&self) -> f64
sourcepub fn value_formatted(&self) -> String
pub fn value_formatted(&self) -> String
String representation of value as it showed in Reaper.
sourcepub fn value_normalized(&self) -> f64
pub fn value_normalized(&self) -> f64
Param Value, scaled to be in 0.0..1.0
range.
pub fn step_sizes(&self) -> ReaperStaticResult<FXParamStepSizes>
sourceimpl<'a, P: KnowsProject, F: FXParamParentMut<'a, P> + FXParamParent<'a, Mutable, P>> FXParam<'a, Mutable, P, F>
impl<'a, P: KnowsProject, F: FXParamParentMut<'a, P> + FXParamParent<'a, Mutable, P>> FXParam<'a, Mutable, P, F>
pub fn set_value(&mut self, value: f64) -> ReaperStaticResult<()>
sourcepub fn set_value_normalized(&mut self, value: f64) -> ReaperStaticResult<()>
pub fn set_value_normalized(&mut self, value: f64) -> ReaperStaticResult<()>
Set value as it was scaled to be in 0.0..1.0
range.
pub fn envelope_mut(
&self,
create_if_not_exists: bool
) -> Option<Envelope<'a, P, Mutable>>
Trait Implementations
Auto Trait Implementations
impl<'a, M, P, F> RefUnwindSafe for FXParam<'a, M, P, F>where
F: RefUnwindSafe,
M: RefUnwindSafe,
P: RefUnwindSafe,
impl<'a, M, P, F> Send for FXParam<'a, M, P, F>where
F: Sync,
M: Send,
P: Send,
impl<'a, M, P, F> Sync for FXParam<'a, M, P, F>where
F: Sync,
M: Sync,
P: Sync,
impl<'a, M, P, F> Unpin for FXParam<'a, M, P, F>where
M: Unpin,
P: Unpin,
impl<'a, M, P, F> UnwindSafe for FXParam<'a, M, P, F>where
F: RefUnwindSafe,
M: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more