[−][src]Struct reaper_medium::VolumeSliderValue
This represents a volume measured as fader position.
Implementations
impl VolumeSliderValue
[src]
pub const MIN: VolumeSliderValue
[src]
The minimum possible value (= MINUS_INF
).
There's no maximum value because REAPER allows to exceed the "soft maximum" of 12 dB!
pub const NAN: ReaperVolumeValue
[src]
The not-a-number volume (f64::NAN
= 1.#R dB).
pub const MINUS_INF_DB: VolumeSliderValue
[src]
The negative infinity volume (0.0 = -inf dB).
pub const MINUS_150_DB: VolumeSliderValue
[src]
The "soft minimum" volume (2.5138729793972 = -150.0 dB).
pub const ZERO_DB: VolumeSliderValue
[src]
The "unaltered" volume (716.0 = 0.0 dB).
pub const TWELVE_DB: VolumeSliderValue
[src]
The "soft maximum" volume (1000.0 = 12.0 dB).
pub fn new(value: f64) -> VolumeSliderValue
[src]
Creates a volume slider value.
Panics
This function panics if the given value is not within the range supported by REAPER
(0.0..)
.
pub const fn get(&self) -> f64
[src]
Returns the wrapped value.
Trait Implementations
impl Clone for VolumeSliderValue
[src]
fn clone(&self) -> VolumeSliderValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VolumeSliderValue
[src]
impl Debug for VolumeSliderValue
[src]
impl Default for VolumeSliderValue
[src]
fn default() -> VolumeSliderValue
[src]
impl Display for VolumeSliderValue
[src]
impl PartialEq<VolumeSliderValue> for VolumeSliderValue
[src]
fn eq(&self, other: &VolumeSliderValue) -> bool
[src]
fn ne(&self, other: &VolumeSliderValue) -> bool
[src]
impl PartialOrd<VolumeSliderValue> for VolumeSliderValue
[src]
fn partial_cmp(&self, other: &VolumeSliderValue) -> Option<Ordering>
[src]
fn lt(&self, other: &VolumeSliderValue) -> bool
[src]
fn le(&self, other: &VolumeSliderValue) -> bool
[src]
fn gt(&self, other: &VolumeSliderValue) -> bool
[src]
fn ge(&self, other: &VolumeSliderValue) -> bool
[src]
impl StructuralPartialEq for VolumeSliderValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for VolumeSliderValue
impl Send for VolumeSliderValue
impl Sync for VolumeSliderValue
impl Unpin for VolumeSliderValue
impl UnwindSafe for VolumeSliderValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,