decal 0.6.0

Declarative DSL for describing scenes and rendering them to SVG or PNG
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Controls how content that overflows the bounds of a node is handled.
#[derive(Debug, Clone, Copy, Default)]
pub enum Overflow {
    /// Overflowing content is visible and may extend outside the node's bounds.
    #[default]
    Visible,
    /// Overflowing content is clipped to the node's bounds.
    Hidden,
}

impl Into<taffy::Overflow> for Overflow {
    fn into(self) -> taffy::Overflow {
        match self {
            Overflow::Visible => taffy::Overflow::Visible,
            Overflow::Hidden => taffy::Overflow::Hidden,
        }
    }
}