Expand description
Pluggable rendering backends. Pluggable rendering backends.
The Output, Input, and Cursor traits (plus the Backend bundle that ties them
together) and the dependency-free Headless test backend live here. Platform backends
(crossterm, software/winit) are separate crates (retroglyph-crossterm, retroglyph-software)
that depend on this one and implement these traits.
Re-exports§
pub use headless::Headless;
Modules§
- headless
- In-memory backend for testing. Stores presented content and allows injecting synthetic events.
Structs§
- Draw
Cell - One cell handed to a backend at draw time: the tile, plus the state that does not fit in one.
Enums§
- Cursor
Style - The text cursor’s visual shape and blink behavior.
Traits§
- Backend
- A rendering backend that presents grid content to a display and provides input events.
- Backend
Error - Associated error type used by all fallible backend methods.
- Cursor
- Shows, hides, and moves a text cursor.
- Input
- Polls for and accepts input events.
- Output
- Draws grid content to a display and reports its dimensions.