Skip to main content

retroglyph/
prelude.rs

1//! The names a `retroglyph` program cannot avoid, glob-importable in one line
2//! (`use retroglyph::prelude::*;`): the `App` contract, the trait a backend's own builder
3//! implements to be [`launch`](Launch::launch)ed, the two style primitives, the input event/key
4//! types, and the geometry aliases every `Surface`/`Backend` call takes or returns, plus
5//! [`HasSize`](crate::grid::HasSize) so `.width()`/`.height()` resolve on [`Size`](crate::grid::Size)
6//! without a separate `ixy` import.
7//!
8//! Everything here also lives at its own module path (`retroglyph::app::App`,
9//! `retroglyph::color::Style`, ...); the prelude is purely a convenience re-export, not a
10//! separate surface.
11
12pub use crate::app::{App, Flow, Frame, Launch};
13pub use crate::color::{Color, Style};
14pub use crate::event::{Event, KeyCode};
15pub use crate::grid::{HasSize, Pos, Rect, Size};
16pub use crate::terminal::Terminal;