ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::media::immutable::ImmutableTransform;
use crate::media::ITransform;

/// Extension methods for transform classes.
pub struct TransformExtensions;

impl TransformExtensions {
    /// Converts a transform to an immutable transform.
    pub fn to_immutable(transform: &dyn ITransform) -> ImmutableTransform {
        ImmutableTransform::new(transform.value())
    }
}