[][src]Struct reaper_medium::VolumeSliderValue

pub struct 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).

See ReaperVolumeValue::NAN.

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]

impl Copy for VolumeSliderValue[src]

impl Debug for VolumeSliderValue[src]

impl Default for VolumeSliderValue[src]

impl Display for VolumeSliderValue[src]

impl PartialEq<VolumeSliderValue> for VolumeSliderValue[src]

impl PartialOrd<VolumeSliderValue> for VolumeSliderValue[src]

impl StructuralPartialEq for VolumeSliderValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.