|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Owning bounds and appearances for a one-line editor. More...
#include <line_edit.hpp>
Public Attributes | |
| TextLimits | limits {4096, 4096, 4096, 8192} |
| Whole draft limits, never silent truncation. | |
| WidthPolicy | widthPolicy {} |
| Immutable cell-width policy for this editor. | |
| ControlStyle | style {} |
| Normal, focused and disabled appearance. | |
| CellStyle | selection {{}, {}, true, true} |
| Whole selected grapheme appearance. | |
| CellStyle | cursor {{}, {}, true, false, true} |
| Software caret cell; whole wide glyph when it fits. | |
| EditMode | editMode {EditMode::IMMEDIATE} |
| Confirmation policy shared by input, paste and fluent text edits. | |
| TextHistoryOptions | history {} |
| Enabled by default: 128 combined groups, 1 MiB retained snapshots. | |
| bool | readOnly {} |
| User edits and history commands are blocked; explicit programmatic text changes remain allowed. | |
| ProgrammaticChange | programmaticChange {ProgrammaticChange::RECORD} |
| Default fluent mutation history policy. | |
| LineEditHistoryShortcuts | historyShortcuts {} |
| Exact owning Undo/Redo shortcuts, validated at bind. | |
| LineEditDisplayMode | displayMode {LineEditDisplayMode::NORMAL} |
| Remount to change this presentation policy. | |
| std::optional< std::string > | placeholder {} |
| Owned single-line UTF-8 shown only for an empty draft, never model data. | |
Owning bounds and appearances for a one-line editor.