//! Side-by-side layout of nodes along an axis. use super::prelude::*; use super::{AlignNode, SpacingKind}; /// Arrange nodes and spacing along an axis. #[derive(Debug, Hash)] pub struct StackNode { /// The stacking direction. pub dir: Dir, /// The spacing between non-spacing children. pub spacing: Option, /// The children to be stacked. pub children: Vec, } #[class] impl StackNode { fn construct(_: &mut Vm, args: &mut Args) -> TypResult