scrin 0.1.75

A terminal UI toolkit with panes, widgets, overlays, animations, and Aisling-powered effects/loaders.
Documentation
pub mod barchart;
pub mod block;
pub mod canvas;
pub mod chart;
pub mod clear;
pub mod code;
pub mod form;
pub mod gauge;
pub mod list;
pub mod markdown_output;
pub mod paragraph;
pub mod popup;
pub mod scrollbar;
pub mod sparkline;
pub mod table;
pub mod tabs;
pub mod toggle;

pub use barchart::BarChart;
pub use block::Block;
pub use canvas::Canvas;
pub use chart::Chart;
pub use clear::{centered_rect, Clear};
pub use code::CodeBlock;
pub use form::{Dropdown, Form, FormAction, FormField, TextInput};
pub use gauge::Gauge;
pub use list::{rich_item, List, ListItem, ListState};
pub use markdown_output::MarkdownOutput;
pub use paragraph::{Alignment, Line, Paragraph, Span, Text, WrapMode};
pub use popup::Popup;
pub use scrollbar::ScrollBar;
pub use sparkline::Sparkline;
pub use table::Table;
pub use tabs::Tabs;
pub use toggle::Toggle;

use crate::core::buffer::Buffer;
use crate::core::rect::Rect;

pub trait Widget {
    fn render(&self, buffer: &mut Buffer, area: Rect);
}