tui-lipan 0.1.0

Opinionated, component-based TUI framework for Rust - declarative components, reconciliation, layout engine, focus, overlays, and rich widgets on top of ratatui.
Documentation
use std::rc::Rc;

use crate::core::node::WidgetNode;
use crate::style::Rect;

#[derive(Clone, Debug)]
pub struct GridLayoutCache {
    pub bounds: Rect,
    pub layout_hash: u64,
    pub child_rects: Rc<Vec<Rect>>,
}

#[derive(Clone, Debug, Default)]
pub struct GridNode {
    pub props: super::GridProps,
    pub layout_cache: Option<GridLayoutCache>,
}

impl WidgetNode for GridNode {}