Expand description
The in-place editor: the field the kernel asked for, run over the diagram.
The editor is the front end’s. It keeps the draft, the caret and the selection, and says only how the edit ended — a commit, a cancel, or a Tab that steps the cycle on. The kernel hears no keystroke, and leaves out of the diagram the text this field covers.
Re-exports§
pub use InPlaceEditor_completions::Component::InPlaceEditor;
Structs§
- InPlace
Editor Props - Properties for the
InPlaceEditorcomponent.
Enums§
- Ending 🔒
- Whether the field has already said how it ended. A cancel takes the focus away with it, and the blur that follows must not commit what Escape just dropped.
- Selecting 🔒
- Whether the field opens on its whole text selected, so typing replaces it.
Functions§
- InPlace
Editor - The field the last call asked for. Keyed by the field’s id where it is rendered, so opening a different editor mounts a fresh draft.
- aligned 🔒
- focus 🔒
- register_
faces - Hand the browser the bundled faces, under the names they are asked for. The diagram needs none of this — its glyphs are outlines the backend fills — but the field over it is the browser’s own text, and it is drawn in the same face as what it covers.
- style_
of 🔒 - The field as the diagram has it: where the kernel put it, turned by the mark’s own angle about the rect’s centre, in the face and at the size the run was measured in. The pad, the ring and the rounding are the ones the kernel sized the field by, scaled by the camera like everything else.