Enum reaper_medium::InsertMediaMode
source · [−]pub enum InsertMediaMode {
CurrentTrack,
NewTrack,
SelectedItemsAsTakes,
TrackAtIndex(u32),
NewReasamplomaticOnNewTrack,
NewReasamplomaticOnCurrentTrack,
NewReasamplomaticOnTrackAtIndex(u32),
CurrentReasamplomatic,
}
Expand description
Decides where to insert a media file.
Variants
CurrentTrack
Adds the media as item to the last touched track.
Creates a track if none exists.
NewTrack
Adds the media as item to a new track.
The new track is created below the last touched one.
SelectedItemsAsTakes
Adds the media as take to the currently selected items.
TrackAtIndex(u32)
Adds the media as item to the track at the given index.
Creates a new track if the index is out of bounds.
NewReasamplomaticOnNewTrack
Creates a new track and loads the media into a new RS5K instance on the normal FX chain of that track.
The track is created below the last touched one.
NewReasamplomaticOnCurrentTrack
Loads the media into a new RS5K instance on the normal FX chain of the last touched track.
NewReasamplomaticOnTrackAtIndex(u32)
CurrentReasamplomatic
Loads the media into the last focused RS5K instance.
Implementations
sourceimpl InsertMediaMode
impl InsertMediaMode
sourcepub fn to_raw(self, flags: BitFlags<InsertMediaFlag>) -> i32
pub fn to_raw(self, flags: BitFlags<InsertMediaFlag>) -> i32
Converts this value and the given flags to an integer as expected by the low-level API.
Trait Implementations
sourceimpl Clone for InsertMediaMode
impl Clone for InsertMediaMode
sourcefn clone(&self) -> InsertMediaMode
fn clone(&self) -> InsertMediaMode
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 InsertMediaMode
impl Debug for InsertMediaMode
sourceimpl Hash for InsertMediaMode
impl Hash for InsertMediaMode
sourceimpl PartialEq<InsertMediaMode> for InsertMediaMode
impl PartialEq<InsertMediaMode> for InsertMediaMode
sourcefn eq(&self, other: &InsertMediaMode) -> bool
fn eq(&self, other: &InsertMediaMode) -> bool
impl Copy for InsertMediaMode
impl Eq for InsertMediaMode
impl StructuralEq for InsertMediaMode
impl StructuralPartialEq for InsertMediaMode
Auto Trait Implementations
impl RefUnwindSafe for InsertMediaMode
impl Send for InsertMediaMode
impl Sync for InsertMediaMode
impl Unpin for InsertMediaMode
impl UnwindSafe for InsertMediaMode
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