Expand description
§Stability Policy
beamterm-renderer’s public API includes types from the following third-party crates:
| Crate | Types exposed | Re-exported as |
|---|---|---|
glow | glow::Context via Terminal::gl() | beamterm_renderer::glow |
compact_str | CompactString in return types | beamterm_renderer::compact_str |
web_sys | HtmlCanvasElement via Terminal::canvas() | beamterm_renderer::web_sys |
js_sys | Array, Function in WASM bindings | beamterm_renderer::js_sys |
wasm_bindgen | JsValue in WASM bindings | beamterm_renderer::wasm_bindgen |
These crates are re-exported so that downstream users can depend on beamterm-renderer’s re-exports without adding separate dependencies or worrying about version mismatches.
Semver policy: A dependency version bump is only considered a beamterm breaking change if the type signatures used in beamterm’s public API actually change. A version bump that preserves the same type signatures is a compatible update.
Re-exports§
pub use beamterm_core::compact_str;pub use beamterm_core::glow;pub use js_sys;pub use wasm_bindgen;pub use web_sys;
Modules§
Structs§
- Cell
Data - Data for a single terminal cell including character and colors.
- Cell
Query - Configuration for querying and extracting text from terminal cells.
- Cell
Size - Dimensions of a terminal cell in pixels.
- Cursor
Position - A position in the terminal grid, specified by column and row.
- Font
Atlas - Type-erased wrapper around any
Atlasimplementation. - Font
Atlas Data - Font atlas data for GPU-accelerated terminal rendering.
- Glyph
Tracker - Tracks glyphs that were requested but not found in the font atlas.
- Render
Context - Rendering context that provides access to GL state.
- Renderer
- High-level WebGL2 renderer for terminal-style applications.
- Selection
Tracker - Tracks the active text selection in the terminal grid.
- Serialization
Error - Error returned when font atlas serialization or deserialization fails.
- Static
Font Atlas - A texture atlas containing font glyphs for efficient GL text rendering.
- Terminal
- High-performance WebGL2 terminal renderer.
- Terminal
Builder - Builder for configuring and creating a
Terminal. - Terminal
Debug Api - Debug API exposed to browser console for terminal inspection.
- Terminal
Grid - A high-performance terminal grid renderer using instanced rendering.
- Terminal
Size - Dimensions of a terminal grid in cells.
- UrlMatch
- Result of URL detection containing the query and extracted URL text.
Enums§
- Cell
Iterator - Zero-allocation iterator over terminal cell indices.
- Debug
Space Pattern - Debug pattern for validating pixel-perfect rendering of cell dimensions.
- Error
- Error categories.
- Font
Style - Font style variant encoded in glyph IDs.
- Glsl
Version - GL shader language target for version injection.
- Glyph
Effect - Text decoration effect applied to a glyph.
- Glyph
Slot - Classifies a glyph’s texture slot by width category.
- Selection
Mode - Defines how cells are selected in the terminal grid.
Traits§
Functions§
- find_
url_ at_ cursor - Detects an HTTP/HTTPS URL at or around the given cursor position.
- is_
double_ width - Checks if a grapheme is double-width (emoji or fullwidth character).
- is_
emoji - Checks if a grapheme is an emoji that should use color font rendering.
- select
- Creates a new cell query with the specified selection mode.