pub struct BoxNode {
pub id: NodeId,
pub kind: BoxKind,
pub css: CssStyle,
pub children: Vec<BoxNode>,
pub intrinsic: Option<Arc<dyn IntrinsicMeasure>>,
pub source_path: Option<String>,
pub window: Option<PaintWindow>,
}Expand description
A renderable box. kind is opaque to the engine; the painter dispatch
downcasts the inner Arc<dyn Any> to the concrete component type when
invoked.
Fields§
§id: NodeId§kind: BoxKind§css: CssStyle§children: Vec<BoxNode>§intrinsic: Option<Arc<dyn IntrinsicMeasure>>Optional intrinsic measurement (used by taffy’s measure_fn for
leaves like text / codeblock / image). None = pure container.
source_path: Option<String>JSON path of this node relative to its scene’s children array, e.g.
“/children/2/children/0”. None for synthetic nodes (the scene root).
window: Option<PaintWindow>Visibility window from the component’s start_at/end_at (seconds,
scene-relative). Outside the window the node and its subtree are not
painted but still occupy layout space (CSS visibility semantics —
siblings must not jump when the component appears).
Implementations§
Source§impl BoxNode
impl BoxNode
Auto Trait Implementations§
impl !RefUnwindSafe for BoxNode
impl !UnwindSafe for BoxNode
impl Freeze for BoxNode
impl Send for BoxNode
impl Sync for BoxNode
impl Unpin for BoxNode
impl UnsafeUnpin for BoxNode
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