Struct synthizer::AutomationBatch
source · [−]pub struct AutomationBatch { /* private fields */ }Expand description
Binds the Synthizer automation functionality.
This builds up a list of commands internally, and applies them to the batch
only when flush or execute is called. Applying them one by one to the
underlying Synthizer-side batch is otherwise very slow.
Implementations
sourceimpl AutomationBatch
impl AutomationBatch
pub fn new(ctx: &Context) -> Result<AutomationBatch>
pub fn set_double(
&mut self,
target: &impl ToSyzHandle,
property: DoubleProperty<'_>,
time: f64,
value: f64,
interpolation_type: InterpolationType
) -> Result<&mut Self>
pub fn set_double3(
&mut self,
target: &impl ToSyzHandle,
property: DoubleProperty<'_>,
time: f64,
value: (f64, f64, f64),
interpolation_type: InterpolationType
) -> Result<&mut Self>
pub fn set_double6(
&mut self,
target: &impl ToSyzHandle,
property: DoubleProperty<'_>,
time: f64,
value: (f64, f64, f64, f64, f64, f64),
interpolation_type: InterpolationType
) -> Result<&mut Self>
pub fn clear_all_properties(
&mut self,
target: &impl ToSyzHandle
) -> Result<&mut Self>
pub fn clear_property(
&mut self,
target: &impl ToSyzHandle,
property: impl SyzProperty
) -> Result<&mut Self>
pub fn send_user_event(
&mut self,
target: &impl ToSyzHandle,
time: f64,
param: c_ulonglong
) -> Result<&mut Self>
pub fn clear_user_events(
&mut self,
target: &impl ToSyzHandle
) -> Result<&mut Self>
pub fn execute(self) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AutomationBatch
impl Send for AutomationBatch
impl Sync for AutomationBatch
impl Unpin for AutomationBatch
impl UnwindSafe for AutomationBatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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