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§

source§

impl AutomationBatch

source

pub fn new(ctx: &Context) -> Result<AutomationBatch>

source

pub fn set_double( &mut self, target: &impl ToSyzHandle, property: DoubleProperty<'_>, time: f64, value: f64, interpolation_type: InterpolationType ) -> Result<&mut Self>

source

pub fn set_double3( &mut self, target: &impl ToSyzHandle, property: DoubleProperty<'_>, time: f64, value: (f64, f64, f64), interpolation_type: InterpolationType ) -> Result<&mut Self>

source

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>

source

pub fn clear_all_properties( &mut self, target: &impl ToSyzHandle ) -> Result<&mut Self>

source

pub fn clear_property( &mut self, target: &impl ToSyzHandle, property: impl SyzProperty ) -> Result<&mut Self>

source

pub fn send_user_event( &mut self, target: &impl ToSyzHandle, time: f64, param: c_ulonglong ) -> Result<&mut Self>

source

pub fn clear_user_events( &mut self, target: &impl ToSyzHandle ) -> Result<&mut Self>

source

pub fn flush(&mut self) -> Result<&mut Self>

Flush all pending commands to the batch.

source

pub fn execute(self) -> Result<()>

Trait Implementations§

source§

impl Drop for AutomationBatch

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.