//! Aligning nodes in their parent container. use super::prelude::*; use super::ParNode; /// Align a node along the layouting axes. #[derive(Debug, Hash)] pub struct AlignNode { /// How to align the node horizontally and vertically. pub aligns: Spec>, /// The node to be aligned. pub child: PackedNode, } #[class] impl AlignNode { fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult