pub struct Node {
pub parent: Option<NodeId>,
pub children: Vec<NodeId>,
pub transform: Affine2D,
pub clip: bool,
pub z_order: i32,
pub opacity: f32,
pub content: NodeContent,
pub key: Option<MarkKey>,
}Expand description
A node in the scene graph.
Fields§
§parent: Option<NodeId>Parent node.
children: Vec<NodeId>Child nodes.
transform: Affine2DLocal transform.
clip: boolWhether this node clips its children to its bounds.
z_order: i32Z-order for sibling sorting.
opacity: f32Opacity multiplier [0, 1].
content: NodeContentThe visual content of this node.
key: Option<MarkKey>Optional key for scene diffing (transitions).
Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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