pub struct VolumeSliderValue(/* private fields */);
Expand description
This represents a volume measured as fader position.
Implementations§
Source§impl VolumeSliderValue
impl VolumeSliderValue
Sourcepub const MIN: VolumeSliderValue = VolumeSliderValue::MINUS_INF_DB
pub const MIN: VolumeSliderValue = VolumeSliderValue::MINUS_INF_DB
The minimum possible value (= MINUS_INF
).
There’s no maximum value because REAPER allows to exceed the “soft maximum” of 12 dB!
Sourcepub const NAN: ReaperVolumeValue
pub const NAN: ReaperVolumeValue
The not-a-number volume (f64::NAN
= 1.#R dB).
Sourcepub const MINUS_INF_DB: VolumeSliderValue
pub const MINUS_INF_DB: VolumeSliderValue
The negative infinity volume (0.0 = -inf dB).
Sourcepub const MINUS_150_DB: VolumeSliderValue
pub const MINUS_150_DB: VolumeSliderValue
The “soft minimum” volume (2.5138729793972 = -150.0 dB).
Sourcepub const ZERO_DB: VolumeSliderValue
pub const ZERO_DB: VolumeSliderValue
The “unaltered” volume (716.0 = 0.0 dB).
Sourcepub const TWELVE_DB: VolumeSliderValue
pub const TWELVE_DB: VolumeSliderValue
The “soft maximum” volume (1000.0 = 12.0 dB).
Sourcepub fn new(value: f64) -> VolumeSliderValue
pub fn new(value: f64) -> VolumeSliderValue
Creates a volume slider value.
§Panics
This function panics if the given value is not within the range supported by REAPER
(0.0..)
.
Trait Implementations§
Source§impl Clone for VolumeSliderValue
impl Clone for VolumeSliderValue
Source§fn clone(&self) -> VolumeSliderValue
fn clone(&self) -> VolumeSliderValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VolumeSliderValue
impl Debug for VolumeSliderValue
Source§impl Default for VolumeSliderValue
impl Default for VolumeSliderValue
Source§fn default() -> VolumeSliderValue
fn default() -> VolumeSliderValue
Returns the “default value” for a type. Read more
Source§impl Display for VolumeSliderValue
impl Display for VolumeSliderValue
Source§impl PartialEq for VolumeSliderValue
impl PartialEq for VolumeSliderValue
Source§impl PartialOrd for VolumeSliderValue
impl PartialOrd for VolumeSliderValue
impl Copy for VolumeSliderValue
impl StructuralPartialEq for VolumeSliderValue
Auto Trait Implementations§
impl Freeze for VolumeSliderValue
impl RefUnwindSafe for VolumeSliderValue
impl Send for VolumeSliderValue
impl Sync for VolumeSliderValue
impl Unpin for VolumeSliderValue
impl UnwindSafe for VolumeSliderValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more