pdfrum_form/edit/mod.rs
1//! The edit control: what interacting with a text field adds to the layout
2//! engine.
3//!
4//! Layout — paragraphs, line breaking, bidi, comb cells, password
5//! substitution, sizing and placement — belongs to `pdfrum-doc`. What an
6//! *editing* user can observe that a generated appearance cannot is what lives
7//! here: a caret and its sticky desired column, a directional selection
8//! anchor, an undo stack, a scroll offset, and the mutations themselves.
9
10// `ops` and `place` stay `pub`: `ops` is the mutation surface a caller drives
11// without a session, and `place` carries the `PlaceExt` trait, whose methods a
12// caller brings into scope by naming where it lives. `select` and `undo` are
13// namespaces — everything in them is re-exported here and at the root.
14pub mod ops;
15pub mod place;
16mod select;
17mod undo;
18
19pub use ops::TextEdit;
20pub use place::{Place, PlaceExt, Range};
21pub use select::Selection;
22pub use undo::{UndoItem, UndoStack};