pub struct ReaperPanValue(/* private fields */);Expand description
This represents a pan measured in REAPER’s native pan unit.
Implementations§
Source§impl ReaperPanValue
impl ReaperPanValue
Sourcepub const MIN: ReaperPanValue = ReaperPanValue::LEFT
pub const MIN: ReaperPanValue = ReaperPanValue::LEFT
The minimum possible value (= LEFT).
Sourcepub const LEFT: ReaperPanValue
pub const LEFT: ReaperPanValue
The “extreme” left value (-1.0).
Sourcepub const CENTER: ReaperPanValue
pub const CENTER: ReaperPanValue
The center value (0.0).
Sourcepub const RIGHT: ReaperPanValue
pub const RIGHT: ReaperPanValue
The “extreme” right value (1.0).
Sourcepub const MAX: ReaperPanValue = ReaperPanValue::RIGHT
pub const MAX: ReaperPanValue = ReaperPanValue::RIGHT
The maximum possible value (= RIGHT).
Sourcepub fn new(value: f64) -> ReaperPanValue
pub fn new(value: f64) -> ReaperPanValue
Creates a pan value.
§Panics
This function panics if the given value is not within the range supported by REAPER
(-1.0..=1.0).
Trait Implementations§
Source§impl Clone for ReaperPanValue
impl Clone for ReaperPanValue
Source§fn clone(&self) -> ReaperPanValue
fn clone(&self) -> ReaperPanValue
Returns a duplicate 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 ReaperPanValue
impl Debug for ReaperPanValue
Source§impl Default for ReaperPanValue
impl Default for ReaperPanValue
Source§fn default() -> ReaperPanValue
fn default() -> ReaperPanValue
Returns the “default value” for a type. Read more
Source§impl Display for ReaperPanValue
impl Display for ReaperPanValue
Source§impl PartialEq for ReaperPanValue
impl PartialEq for ReaperPanValue
Source§impl PartialOrd for ReaperPanValue
impl PartialOrd for ReaperPanValue
impl Copy for ReaperPanValue
impl StructuralPartialEq for ReaperPanValue
Auto Trait Implementations§
impl Freeze for ReaperPanValue
impl RefUnwindSafe for ReaperPanValue
impl Send for ReaperPanValue
impl Sync for ReaperPanValue
impl Unpin for ReaperPanValue
impl UnwindSafe for ReaperPanValue
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