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 CanvasNode {
    pub style: Style,
    pub passthrough: bool,
    /// Children retained past removal so they can finish an
    /// [`Animated::auto_exit`](crate::widgets::Animated::auto_exit) collapse.
    ///
    /// Canvas items carry their own placement rectangle, so unlike a stack there is no reflow to
    /// preserve: a retained child simply keeps its position while it collapses.
    pub exiting: Vec<ExitingChild>,
}

impl WidgetNode for CanvasNode {}