use super::*;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BatchKind {
Animation,
Effect,
InfiniteAnimation,
AllAnimations,
}
impl From<BatchKind> for bindings::CompositionBatchTypes {
fn from(kind: BatchKind) -> Self {
match kind {
BatchKind::Animation => Self::Animation,
BatchKind::Effect => Self::Effect,
BatchKind::InfiniteAnimation => Self::InfiniteAnimation,
BatchKind::AllAnimations => Self::AllAnimations,
}
}
}
pub struct CompositionScopedBatch(pub(crate) bindings::CompositionScopedBatch);
impl CompositionScopedBatch {
pub fn end(&self) {
self.0.End().unwrap();
}
}