Skip to main content

Module edit

Module edit 

Source
Expand description

The edit control: what interacting with a text field adds to the layout engine.

Layout — paragraphs, line breaking, bidi, comb cells, password substitution, sizing and placement — belongs to pdfrum-doc. What an editing user can observe that a generated appearance cannot is what lives here: a caret and its sticky desired column, a directional selection anchor, an undo stack, a scroll offset, and the mutations themselves.

Re-exports§

pub use ops::TextEdit;
pub use place::PlaceExt;
pub use place::Range;

Modules§

ops
The editing operations, and the postlude they share.
place
Positions in a laid-out text, and spans between them.

Structs§

Place
A caret position: after character word of line line of section section.
Selection
A selection: an anchor and an active end, in that order, unordered by value.
UndoStack
A bounded, linear undo stack.

Enums§

UndoItem
One reversible edit, stored as enough to replay its inverse.