Expand description
A complete math editor in one type: editor, keymap, typesetter, undo, clipboard and host box tokens.
Structs§
- Clipboard
Data - A selection as the two clipboard flavors a host writes.
- Render
Cache - Typesets an editor once per revision and keeps the geometry until the caret state changes.
- Session
- An editor with keymap, typesetting, undo, clipboard, and host box tokens, driven by a few input calls.
- Token
Registry - Hands out host box tokens that were never minted or reserved before, from 1 up to
MAX_HOST_TOKEN. - Undo
Stack - Bounded undo and redo history of editor snapshots, where any new step clears the redo side.
- Update
- What one session call did, for the host to act on.
- View
- A typeset editor state with the geometry to paint over it.
Enums§
- Paste
Error - Why
Session::paste_jsonpasted nothing. - Token
Error - Why a host box token cannot be used or minted.
Constants§
- DEFAULT_
UNDO_ LIMIT - Undo steps a
crate::Sessionkeeps unless the host sets another limit.