//! Core primitives for the `rustik_tui` facade crate. //! //! The core keeps terminal I/O at the edge: applications own their state, //! render into a reusable [`Buffer`], and flush through a narrow backend. //! Widgets are plain values that measure themselves with [`Constraint`] and //! write styled [`Cell`] values into the frame buffer. //! //! Styled text moves through three layers: //! //! - [`Paint`](Paint) attaches a [`Style`] to any display value. //! - [`Label`] is one cleaned, single-line styled text run used by [`Line`]. //! - [`Cell`] is the final buffer unit: one terminal glyph plus its style. //! #![deny(unsafe_code)] #![warn(missing_docs)] #![warn(clippy::unwrap_used)] /// Widget alignment wrappers. pub mod aligned; /// ANSI color and style primitives. pub mod ansi; /// Application update and render traits. pub mod app; /// Terminal backends. pub mod backend; /// Shared border drawing primitives. pub mod border; /// Cell buffer and dirty-run diffing. pub mod buffer; /// Table cell sizing and padding support. pub mod cell; /// Shared terminal color palette. pub mod colors; /// Typed terminal events. pub mod event; /// Frame passed into application render calls. pub mod frame; /// Horizontal layout container. pub mod hstack; /// Text label widget. pub mod label; /// Strongly typed terminal layout primitives. pub mod layout; /// Core line and sizing primitives. pub mod primitive; /// Column-aligned table widget. pub mod table; /// Double-buffered terminal renderer. pub mod terminal; /// Styled text constructors. pub mod text; /// Wrapped text area widget. pub mod textarea; /// Vertical layout container. pub mod vstack; /// Immediate-mode widgets. pub mod widget; pub use aligned::{Align, Aligned}; pub use ansi::Color; pub use ansi::{Filled, Paint, PaintMode, Painted, Style, paint}; pub use app::{App, Control, drive}; pub use backend::{Backend, TestBackend}; pub use border::{Border, BorderChars}; pub use buffer::{Buffer, Cell}; pub use cell::Text; pub use event::{Event, Key, Modifiers, Mouse, MouseButton}; pub use frame::Frame; pub use hstack::HStack; pub use label::{Label, label}; pub use layout::{Direction, Length, Point, Rect}; pub use primitive::{Constraint, Line, Size, StyledLine}; pub use table::{Column, Table, TableOptions}; pub use terminal::Terminal; pub use textarea::{TextArea, textarea}; pub use vstack::{VStack, VStackOptions}; pub use widget::{Block, Clear, Fill, RenderResult, StatefulWidget, Widget};