//! Affine transformations on nodes. use super::prelude::*; use crate::geom::Transform; /// Transform a node without affecting layout. #[derive(Debug, Hash)] pub struct TransformNode { /// Transformation to apply to the contents. pub transform: Transform, /// The node whose contents should be transformed. pub child: LayoutNode, } #[class] impl TransformNode { /// The origin of the transformation. pub const ORIGIN: Spec> = Spec::default(); fn construct(_: &mut Context, args: &mut Args) -> TypResult