Expand description
GPUI rendering, canvas text-shaping, and interactive editor component for twrite.
Re-exports§
pub use canvas::EditorCanvas;pub use canvas::LineMetrics;pub use canvas::RunFonts;pub use canvas::build_line_text_runs;pub use config::EditorConfig;pub use editor::Editor;pub use editor::FaceAvailability;pub use editor::SelectionGranularity;pub use editor::VisibleLineLayout;pub use editor::VisibleLink;pub use fps::FrameStats;pub use fps::fps_badge;pub use layout_cache::CachedInput;pub use layout_cache::LayoutCache;pub use prompt_bar::PromptBar;pub use theme::EditorTheme;pub use theme::ResolvedTokenStyle;pub use theme::SyntaxTheme;
Modules§
- canvas
- Canvas element handling prepaint, layout, and GPU quad rendering.
- config
- Configuration settings for font size, line height, wrapping, and gutters.
- editor
- Main editor entity, keybindings, selections, and hook executions.
- fps
- Frame-rate HUD for interactive performance testing. Frame-rate HUD for interactive performance testing.
- input
- Translation helpers from GPUI key events to normalized twrite key events.
- layout_
cache - Per-version viewport cache for highlight/conceal/link inputs. Per-version viewport cache for expensive per-line inputs.
- prompt_
bar - Dumb renderer for the shared headless prompt (bottom bar, palette).
- theme
- Color palettes, Catppuccin themes, and syntax token style resolution.