pub struct BuiltScene<'a> {
pub root: BoxNode,
pub components: Vec<Option<&'a ChildComponent>>,
pub stagger_delays: Vec<f64>,
pub time_params: Vec<(f64, f64)>,
}Expand description
Result of building a box tree from a scene description.
Fields§
§root: BoxNodeRoot box (a flex column container at viewport dimensions).
components: Vec<Option<&'a ChildComponent>>Lookup table — components[id as usize] is the component for id.
None for synthetic boxes (the root scene wrapper).
stagger_delays: Vec<f64>Per-node animation delay accumulated from ancestor containers’
stagger (indexed like components). Consumed by the paint
dispatcher so internal animations shift by the same amount as the
CSS overrides resolved at build time.
time_params: Vec<(f64, f64)>Per-node affine time remap accumulated from ancestor containers’
time_scale/time_offset. Entry i is (scale, shift) where
t_local = scale * t_global + shift. Default (1.0, 0.0) = identity.
Indexed like components and stagger_delays.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BuiltScene<'a>
impl<'a> !UnwindSafe for BuiltScene<'a>
impl<'a> Freeze for BuiltScene<'a>
impl<'a> Send for BuiltScene<'a>
impl<'a> Sync for BuiltScene<'a>
impl<'a> Unpin for BuiltScene<'a>
impl<'a> UnsafeUnpin for BuiltScene<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more