pub struct ShapesPlan { /* private fields */ }Expand description
A content tree with its static parts evaluated once.
Implementations§
Source§impl ShapesPlan
impl ShapesPlan
Sourcepub fn new(items: &[ShapeItem]) -> Self
pub fn new(items: &[ShapeItem]) -> Self
Plans items, evaluating every subtree that does not animate.
Sourcepub fn evaluate(&self, time: MediaTime, aspect: f64) -> Arc<[EvaluatedItem]> ⓘ
pub fn evaluate(&self, time: MediaTime, aspect: f64) -> Arc<[EvaluatedItem]> ⓘ
The tree at time. aspect (width per unit height) shapes motion along spatial curves.
Sourcepub fn is_animated(&self) -> bool
pub fn is_animated(&self) -> bool
Whether anything in the tree animates.
Trait Implementations§
Source§impl Clone for ShapesPlan
impl Clone for ShapesPlan
Source§impl Debug for ShapesPlan
impl Debug for ShapesPlan
Source§impl PartialEq for ShapesPlan
impl PartialEq for ShapesPlan
impl StructuralPartialEq for ShapesPlan
Auto Trait Implementations§
impl Freeze for ShapesPlan
impl RefUnwindSafe for ShapesPlan
impl Send for ShapesPlan
impl Sync for ShapesPlan
impl Unpin for ShapesPlan
impl UnsafeUnpin for ShapesPlan
impl UnwindSafe for ShapesPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more