Skip to main content

Module backend

Module backend 

Source
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§

DrawCell
One cell handed to a backend at draw time: the tile, plus the state that does not fit in one.

Enums§

CursorStyle
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.
BackendError
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.