rive_rs/importers/
linear_animation_importer.rsuse crate::animation::{KeyedObject, LinearAnimation};
use crate::core::Object;
use crate::importers::ImportStackObject;
#[derive(Debug)]
pub struct LinearAnimationImporter {
animation: Object<LinearAnimation>,
}
impl LinearAnimationImporter {
pub fn new(animation: Object<LinearAnimation>) -> Self {
Self { animation }
}
pub fn animation(&self) -> Object<LinearAnimation> {
self.animation.clone()
}
pub fn push_keyed_object(&self, keyed_object: Object<KeyedObject>) {
self.animation.as_ref().push_keyed_object(keyed_object);
}
}
impl ImportStackObject for LinearAnimationImporter {}