Portals 0.7.0 · dev0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::LineEdit Class Reference
UI-owned Unicode draft; mutate only through its scoped binding between frames. Cursor/anchor are UTF-8 byte boundaries, while scrolling and painting use terminal cells. Paint borrows owning text through the enclosing tree.frame and performs no service/model calls. PASSWORD caches one ASCII '*' per grapheme; NO_ECHO has fixed width one and a fixed-origin caret. Protected modes suppress outbound copy/cut but permit inbound paste when writable. Models, getters, commit receipts and bounded history can contain plaintext; no storage zeroization is promised.
More...
UI-owned Unicode draft; mutate only through its scoped binding between frames. Cursor/anchor are UTF-8 byte boundaries, while scrolling and painting use terminal cells. Paint borrows owning text through the enclosing tree.frame and performs no service/model calls. PASSWORD caches one ASCII '*' per grapheme; NO_ECHO has fixed width one and a fixed-origin caret. Protected modes suppress outbound copy/cut but permit inbound paste when writable. Models, getters, commit receipts and bounded history can contain plaintext; no storage zeroization is promised.
Construct an empty editor; binding adopts its initial model snapshot.
Parameters
options
Owning immutable limits, width policy and styles.
policy
Owning layout size policy validated by layout.
Exceptions
std::bad_alloc
If initial text storage cannot be allocated.
std::bad_expected_access<TextError>
If the width policy or placeholder text violates its bounds.
std::invalid_argument
If the display mode is unknown or the placeholder contains a line separator. Declarative recipes prepare placeholder validation/storage in their checked mount boundary instead.