Struct surge_param::ParamRT
source · [−]pub struct ParamRT<P: Param + ?Sized> {
pub val: PData,
pub modulation_delta: PData,
pub midictrl: Option<i32>,
pub per_voice_processing: bool,
pub temposync: bool,
pub extend_range: bool,
pub absolute: bool,
pub snap: bool,
pub delegate: Box<P>,
}Fields
val: PDatamodulation_delta: PDatamidictrl: Option<i32>per_voice_processing: booltemposync: boolextend_range: boolabsolute: boolsnap: booldelegate: Box<P>Implementations
Trait Implementations
sourceimpl<P: Param + ?Sized> BoundValue for ParamRT<P>
impl<P: Param + ?Sized> BoundValue for ParamRT<P>
fn limit_range(&mut self)
fn bound_value(&mut self, force_integer: bool)
sourceimpl<P: Param> ClearFlags for ParamRT<P>
impl<P: Param> ClearFlags for ParamRT<P>
fn clear_flags(&mut self)
sourceimpl<P: Param> ConvertValueToFromNormalized for ParamRT<P>
impl<P: Param> ConvertValueToFromNormalized for ParamRT<P>
fn value2normalized(&self, value: f32) -> f32
fn normalized2value(&self, value: f32) -> f32
sourceimpl<P: Param + ?Sized> GetSetModulation for ParamRT<P>
impl<P: Param + ?Sized> GetSetModulation for ParamRT<P>
fn set_modulation_val(&mut self, val: PData)
fn get_modulation_val(&self) -> PData
fn set_param_val(&mut self, val: PData)
fn get_param_val(&self) -> PData
fn get_value_f01(&self) -> f32
fn set_value_f01(&mut self, v: f32, force_integer: bool)
sourceimpl<P: Param + ?Sized> Param for ParamRT<P>
impl<P: Param + ?Sized> Param for ParamRT<P>
fn control_type(&self) -> ControlType
fn control_style(&self) -> ControlStyle
fn control_group(&self) -> ControlGroup
fn default_value(&self) -> PData
fn modulateable(&self) -> bool
fn min_value(&self) -> PData
fn max_value(&self) -> PData
fn value_type(&self) -> ValType
fn moverate(&self) -> f32
fn snap(&self) -> bool
fn extend_range(&self) -> bool
fn affect_other_parameters(&self) -> bool
fn can_temposync(&self) -> bool
fn can_extend_range(&self) -> bool
fn can_be_absolute(&self) -> bool
fn can_snap(&self) -> bool
sourcefn get_modulation_f01(&self, modulation: f32) -> f32
fn get_modulation_f01(&self, modulation: f32) -> f32
used by the gui to get the position of the modulated handle Read more
sourcefn set_modulation_f01(&self, v: f32) -> f32
fn set_modulation_f01(&self, v: f32) -> f32
used by the gui to set the modulation to match the position of the modulated handle Read more
fn get_extended(&self, f: f32) -> f32
fn get_default_value_f01(&self) -> f32
sourceimpl<P: Param> ParameterDisplay for ParamRT<P>
impl<P: Param> ParameterDisplay for ParamRT<P>
fn get_display(&self, external: bool, ef: f32) -> String
fn get_display_alt(&self, external: bool, ef: f32) -> String
Auto Trait Implementations
impl<P: ?Sized> RefUnwindSafe for ParamRT<P> where
P: RefUnwindSafe,
impl<P: ?Sized> Send for ParamRT<P> where
P: Send,
impl<P: ?Sized> Sync for ParamRT<P> where
P: Sync,
impl<P: ?Sized> Unpin for ParamRT<P>
impl<P: ?Sized> UnwindSafe for ParamRT<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more