minui 0.4.1

A minimalist Rust framework for TUIs and terminal games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! UI utilities for MinUI applications.
//!
//! This module contains lightweight, app-friendly building blocks that sit "above" the
//! widget layer. These are intended to help with common TUI concerns (like interaction
//! hit-testing) without forcing MinUI into a fully retained widget tree or requiring
//! intrusive changes to the `Widget` trait.
//!
//! Currently provided:
//! - `interaction`: draw-time interaction caching for hit testing + basic focus tracking.
//! - `IdAllocator`: a tiny monotonic ID allocator for generating `InteractionId`s.
//! - `AutoHide`: helper for auto-hide UX (e.g. scrollbars that reveal on scroll/proximity).

pub mod interaction;

pub use interaction::{
    AutoHide, HitTestResult, IdAllocator, InteractionCache, InteractionEntry, InteractionFlags,
    InteractionId,
};