Enum reaper_medium::ActionValueChange
source · [−]pub enum ActionValueChange {
AbsoluteLowRes(U7),
AbsoluteHighRes(U14),
Relative1(U7),
Relative2(U7),
Relative3(U7),
Unknown(Hidden<(i32, i32, i32)>),
}
Expand description
Represents a value change targeted to a REAPER action.
This uses typical MIDI types (7-bit and 14-bit values) because this is supposed to be used for actions which are controllable via MIDI.
Variants
AbsoluteLowRes(U7)
Sets the given value absolutely using a low resolution (128 possible values).
AbsoluteHighRes(U14)
Sets the given value absolutely using a high resolution (16384 different values).
Relative1(U7)
Increments or decrements the current value using REAPER’s CC mode “Relative 1”.
- 127 → -1
- 1 → +1
Relative2(U7)
Increments or decrements the current value using REAPER’s CC mode “Relative 2”.
- 63 → -1
- 65 → +1
Relative3(U7)
Increments or decrements the current value using REAPER’s CC mode “Relative 3”.
- 65 → -1
- 1 → +1
Unknown(Hidden<(i32, i32, i32)>)
Represents a variant unknown to reaper-rs. Please contribute if you encounter a variant that is supported by REAPER but not yet by reaper-rs. Thanks!
Trait Implementations
sourceimpl Clone for ActionValueChange
impl Clone for ActionValueChange
sourcefn clone(&self) -> ActionValueChange
fn clone(&self) -> ActionValueChange
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ActionValueChange
impl Debug for ActionValueChange
sourceimpl Hash for ActionValueChange
impl Hash for ActionValueChange
sourceimpl PartialEq<ActionValueChange> for ActionValueChange
impl PartialEq<ActionValueChange> for ActionValueChange
sourcefn eq(&self, other: &ActionValueChange) -> bool
fn eq(&self, other: &ActionValueChange) -> bool
impl Copy for ActionValueChange
impl Eq for ActionValueChange
impl StructuralEq for ActionValueChange
impl StructuralPartialEq for ActionValueChange
Auto Trait Implementations
impl RefUnwindSafe for ActionValueChange
impl Send for ActionValueChange
impl Sync for ActionValueChange
impl Unpin for ActionValueChange
impl UnwindSafe for ActionValueChange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more