tui-lipan 0.2.0

Opinionated, component-based TUI framework for Rust - declarative components, reconciliation, layout engine, focus, overlays, and rich widgets on top of ratatui.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::core::node::WidgetNode;
use crate::style::Style;
use crate::widgets::containers::exit_retention::ExitingChild;

#[derive(Clone, Debug, Default)]
pub struct ZStackNode {
    pub style: Style,
    pub passthrough: bool,
    /// Children retained past removal so they can finish an
    /// [`Animated::auto_exit`](crate::widgets::Animated::auto_exit) collapse.
    ///
    /// Every layer receives the same rectangle, so like a `Canvas` there is no reflow to
    /// preserve: a retained layer collapses in place and the others are untouched.
    pub exiting: Vec<ExitingChild>,
}

impl WidgetNode for ZStackNode {}