tuika 0.2.0

A composable terminal UI toolkit — flexbox layout, overlays, focus, and safe ratatui interoperability.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Spacer — empty, flexible filler. Paints nothing; useful as a
//! `Dimension::Flex` child to push siblings apart, or fixed to insert a gap.

use ratatui::layout::Rect;

use crate::geometry::Size;
use crate::surface::Surface;
use crate::view::{RenderCtx, View};

pub struct Spacer;

impl View for Spacer {
    fn measure(&self, _available: Size) -> Size {
        Size::ZERO
    }

    fn render(&self, _area: Rect, _surface: &mut Surface, _ctx: &RenderCtx) {}
}