Crate ailloli_ui_editor

Source
Expand description

UI-agnostic multi-paragraph editor engine.

ailloli_ui_editor owns editor text state, viewport math, visible paragraph layout, hit-testing, caret/selection geometry, IME display text, and the neutral paint model consumed by UI adapters.

Re-exports§

pub use code::index_symbols_with_fallback;
pub use code::parse_ctags_json_lines;
pub use code::resolve_document_language;
pub use code::CodeEditorConfig;
pub use code::CodeEditorFeatureFlags;
pub use code::CodeEditorSession;
pub use code::CodeFileSummary;
pub use code::CodeSymbol;
pub use code::CodeTheme;
pub use code::CtagsError;
pub use code::CtagsRunnerConfig;
pub use code::CtagsSymbolIndexer;
pub use code::Diagnostic;
pub use code::DiagnosticHit;
pub use code::DiagnosticSeverity;
pub use code::DiagnosticSource;
pub use code::Document;
pub use code::DocumentId;
pub use code::DocumentSource;
pub use code::DocumentVersion;
pub use code::EditorLanguage;
pub use code::FoldRegion;
pub use code::FoldRegionId;
pub use code::GutterConfig;
pub use code::LexicalRustSymbolIndexer;
pub use code::LspBackend;
pub use code::LspCapabilities;
pub use code::LspDiagnostic;
pub use code::LspEnrichment;
pub use code::LspError;
pub use code::LspRequestId;
pub use code::NoopLspBackend;
pub use code::ScipDocumentIndex;
pub use code::ScipImportError;
pub use code::ScipOccurrence;
pub use code::ScipOccurrenceRole;
pub use code::ScipProjectIndex;
pub use code::ScipProjectMetadata;
pub use code::ScipProjectSummary;
pub use code::ScipRelation;
pub use code::ScipSymbol;
pub use code::SearchMatch;
pub use code::SearchQuery;
pub use code::SearchState;
pub use code::SymbolEdge;
pub use code::SymbolEdgeKind;
pub use code::SymbolId;
pub use code::SymbolIndexer;
pub use code::SymbolKind;
pub use code::SymbolSource;
pub use config::EditorConfig;
pub use config::EditorWrapMode;
pub use engine::code_scrollbar_geometries;
pub use engine::EditorEngine;
pub use frame::EditorFrame;
pub use frame::EditorFrameDebugMetrics;
pub use input::EditorHitTest;
pub use input::EditorHitZone;
pub use input::EditorInputOutcome;
pub use input::EditorZoneHitTest;
pub use input::SelectionGranularity;
pub use paint::EditorPaintItem;
pub use state::EditorClickZone;
pub use state::EditorSession;
pub use style::EditorScrollbarConfig;
pub use style::EditorScrollbarStyle;
pub use style::EditorStyle;
pub use viewport::editor_content_rect;
pub use viewport::EditorViewport;

Modules§

code
Code-document configuration, models, syntax, search, and semantic adapters. Code-document metadata plus syntax, search, folding, diagnostics, and symbols.
config
Generic editor configuration. Generic editor wrapping and visual configuration.
engine
Stateful frame construction and geometry queries. Cached frame construction, hit testing, caret geometry, and scroll metrics.
frame
Neutral frame output values. Neutral frame outputs and per-frame diagnostic counters.
input
Caret, selection, hit-test, IME, and scrolling primitives. Editor input geometry and selection primitives.
layout
Paragraph shaping, metrics caching, and viewport virtualization. Paragraph layout, caching, metrics, and viewport virtualization.
paint
Neutral editor paint models and painters. Neutral paint-item construction for editor UI adapters.
state
Mutable editor interaction state. Mutable generic editor input, buffer, viewport, and multi-click state.
style
Generic editor colors and metrics. Generic editor and scrollbar visual defaults.
viewport
Viewport resolution and coordinate transforms. Editor padding, gutter allocation, scrolling, and coordinate conversion.