Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals Namespace Reference

Public Portals API. More...

Namespaces

namespace  legacy
 Minimal streaming compatibility for the original MarketDepthModelSample. This API does not run an Application, perform rendering, or own a terminal session. The caller serializes and flushes output and must not mix it with an active Application.
namespace  syntax
 Compact typed policy values for viewer descriptions and commands.

Classes

class  ActionBinding
 Move-only scoped disconnect token; never owns a tree or widget. Disconnect/destruction may run on any thread. It prevents future callback admission; an already admitted callback finishes on UI. Captures are reclaimed on UI at the next collecting UI operation or router destruction. Tokens may safely outlive the router. More...
struct  ActionEvent
 Owning semantic command, usable without terminal input. More...
struct  AggregateFieldProjection
 Project one field from an immutable, borrowed aggregate row. More...
class  Application
 One UI owner for scheduler, tree, routing and a single terminal run. All calls/destruction except requestStop require the creating thread. Scene owns typed nodes and bindings; release them before this object. Terminal I/O never runs inside layout/paint. No automatic recovery follows uncertain output. Run is single-use, including failed/closed sessions. More...
struct  ApplicationError
 Failure after orderly shutdown, including a separate restoration failure. More...
struct  ApplicationObserver
 Optional synchronous measurement sink; disabled by default. The borrowed observer must outlive run or active session cleanup. It must not perform I/O, mutate/reenter the application, or retain borrowed state. It may collect bounded samples. Exceptions fail run explicitly. More...
struct  ApplicationOptions
 Finite runner and component policies; one owner services all I/O. More...
class  ApplicationReadyTerminal
 Exclusive ready-only transport borrowed by an application session. Every operation must return without waiting for I/O, a timer or another callback. Operations perform bounded work; poll returns one owning batch respecting TerminalOptions limits. DEADLINE with no error means no input/progress is currently available. Errors remain explicit. submit transfers a complete encoded batch into bounded owned storage, without acknowledging output. flushReady reports exact newly accepted bytes and the retained suffix, using FrameOutput accounting. Acceptance into a bounded host queue may count as progress; physical display is not promised. close must also be nonblocking, idempotent and noexcept. The transport must outlive cleanup, including Application destruction when a session is still active. Calls run on the UI owner thread. More...
class  ApplicationScene
 Borrowed scene extension; bindings/models/providers belong to the caller. Construct the Application first, then the scene; destroy the scene before Application. The scene and application must survive every callback and run. No hook may destroy either owner or reenter run. Hooks execute on the creating UI thread; thrown exceptions become explicit failures followed by cleanup. More...
struct  ApplicationStats
 Owning cumulative totals from a run or session, without samples or terminal data. More...
struct  ApplicationStep
 One owning snapshot returned by a bounded session step. More...
class  ApplicationTerminal
 Custom/replay terminal borrowed for exactly one run; no competing I/O is allowed. The owner retains its storage and must outlive run. Application always calls close after run starts, including exceptions and stop. Values returned by read own their bytes/events and respect the configured terminal batch limits. An injected clock must advance consistently with this terminal's deadlines. More...
class  AsyncReceive
 Owning typed data awaiter; normally obtained through UiAsyncContext::receive. More...
class  AsyncReply
 Copyable producer endpoint owning no UI state, callbacks or coroutine frame. T and its deleter must support transitively immutable shared ownership on any releasing thread. One accepted completion ends admission; rejected publication leaves retry possible. The producer must retain the reply and result on WOULD_BLOCK and retry when capacity returns. Synchronous completion queues a value; it never resumes a coroutine inline. More...
class  AsyncTimer
 One-shot absolute millisecond wait on the existing scheduler. More...
struct  AxisSize
 Owning per-axis bounds; preferred=-1 or CONTENT uses intrinsic measurement. More...
class  BackgroundExecutor
 Borrowed host service. A scene never owns, stops or joins this executor. UI integration calls service once per existing application cycle, after scheduler dispatch. A ready host must keep scheduling steps while work is pending; wake only signals the existing scheduler condition and does not interrupt native terminal reads or schedule a foreign event loop. More...
class  BackgroundJob
 Worker-safe work item; never retain Application, UI references, callbacks or coroutine frames. Inputs, callable captures and deleters must be safe on any releasing worker. The owner must impose domain byte limits separately. Cooperative cancellation cannot interrupt arbitrary blocking code. More...
class  BackgroundLatest
 UI-owned latest source; the executor and its host outlive this holder. Existing scene integration services this holder after dispatch. Replacement cancels the previous ticket and replaces only this source's rejected intent. No self-post or inline UI continuation occurs. This bounds count to one unadmitted intent per source; callers enforce their input byte budgets. More...
struct  BackgroundOptions
 Count bounds, independent of the transitive byte size of inputs and results. More...
class  BackgroundPool
 Explicit fixed worker owner for a synchronous run or host-owned lifetime. requestStop never joins; join is the explicit final synchronous boundary after UI retirement and terminal close attempt. Destruction also joins as a final safety net, so this type must never be owned by a scene, node, coroutine frame, or host callback. Inputs and cancelled pending jobs can be released on the calling host thread at final retirement; worker-safe deletion does not imply a bounded transitive payload destruction cost. More...
class  BackgroundTicket
 Move-only cancellation ownership; destruction requests cancellation but never joins. More...
class  BackgroundWorkerStorage
 Optional executor capability for bounded opaque worker-owned caches. Direct operations borrow the live executor. Leases retain only separate light controls. Payload callbacks run synchronously only inside this executor's BackgroundJob::run extent. They must not retain a borrowed value/build scope, UI state, or coroutine storage. More...
struct  BookmarkOptions
 Checked bookmark capacity, independent of logical source length. More...
class  Border
 Frame using the existing vertical LinearLayout with one-cell insets for each present side. Paint borrows only widget-owned glyphs until the enclosing tree.frame ends. The inner child clip prevents fixed/minimum-size children from painting or receiving input on edges. Manual style defaults are construction-only; dynamic styling uses the existing style resolver. No I/O, timer, retained command storage or allocation occurs inside paint itself. More...
struct  BorderOptions
 Owning frame decoration and finite paint-work policy. More...
class  Button
 One-line button; registration is an explicit caller-owned ActionBinding. More...
struct  ByteDocumentCapabilities
 Capabilities captured without I/O during cold source creation. More...
 Worker-observed provider metadata. More...
class  ByteDocumentProvider
 Read-only worker provider; callers serialize operations using the existing executor. Provider/domain storage is external to page accounting, as with WindowProvider. No destination or mutable alias may escape read(). More...
class  ByteDocumentReadSession
 One worker-owned provisional read transaction; destroy it on its creating worker. A successful seal qualifies all preceding pages. Until then callers must not publish them. Implementations retain bounded metadata/handles only, never destination aliases. More...
class  ByteDocumentSource
 Cold source; inspect/read reject its creating (UI) thread. Dispatch synchronous operations through the existing executor; no scheduler is created. One shared source serializes provider operations on workers. Separate sources sharing a provider require provider-level serialization. Pages can be retained by several views. More...
struct  ByteReadCommand
 Exact provider request; destination size bounds the byte window. More...
struct  ByteReadResult
 Short reads alone never imply EOF. More...
class  Canvas
 Synchronous clipped cell drawing inside a retained widget's paint hook. The context and optional brush are borrowed through the enclosing frame. Commands use widget-local coordinates; the frame sink applies surface translation and ancestor clipping. No I/O, allocation, model access or invalidation. Discard the frame's commands on error. More...
struct  Cell
 Owning metadata; IDs may only be interpreted within the source buffer. More...
class  CellBuffer
 Owning bounded cell framebuffer and immutable-width-policy intern pools. More...
struct  CellBufferLimits
 Owning caps; creation allocates all intern pool capacity, including defaults. More...
struct  CellBufferMemory
 Measured C++ storage accounting, excluding allocator overhead and process RSS. More...
class  CellFormat
 Owning single-value formatter for the existing table callback contract. More...
struct  CellPoint
 An owning value in terminal columns/rows, x right and y down. More...
class  CellRect
 An owning, invariant-preserving half-open cell rectangle. More...
struct  CellSize
 An owning available extent in terminal columns/rows. More...
struct  CellStyle
 Small owning paint value, independent of themes and text metrics. More...
struct  CellView
 A synchronous borrowed display glyph plus owning metadata and style. More...
class  Chart
 UI-owned retained plot of a bounded immutable model range. Accessors run only in prepareChart, never paint/measure. They must not retain row borrows, mutate the model/tree, block or perform I/O. Projected OHLC values are presentation data; provider ownership is retained and the business model is never copied by the view. More...
struct  ChartOptions
 Owning chart settings, validated during preparation. More...
struct  ChartRange
 Inclusive logical Y range, increasing upward. Equal endpoints center finite samples. More...
class  CheckBox
 Checkbox presentation; its bound boolean or explicit-state Property remains authoritative. More...
class  CheckBoxBinding
 Own one checkbox's action, subscription and shared UI model owner. Tree, router and scheduler must outlive this token; destroy/move on UI between frames, including from its callback. Model changes never invoke the business callback. Call sync before each frame after external changes/draining events: notifications can be rejected, and equal Property::set does not retry them. Latest committed value wins. More...
struct  CheckBoxOptions
 Owning typed checkbox input configuration. More...
class  CheckStateBinding
 Own one checkbox's action, subscription and shared UI model owner. Tree, router and scheduler must outlive this token; destroy/move on UI between frames, including from its callback. Model changes never invoke the business callback. Call sync before each frame after external changes/draining events: notifications can be rejected, and equal Property::set does not retry them. Latest committed value wins. More...
class  ChoiceSelection
 Owning accepted row identity and bounded label, independent of editor draft and source lifetime. More...
struct  ClickEvent
 Owning activation parameters copied from the existing router delivery. target is the activated button, including when input bubbled from a child. The observing identity may be stale after a callback removes its target. More...
class  Clipboard
 Injected UI clipboard boundary; called only from input handling, never from a frame. The binding shares ownership. Implementations must return promptly and may reenter UI code. Bytes remain data; no terminal escapes are interpreted. Exceptions become FAILED results. More...
struct  CollectionLimits
 Bound the row/index storage of an immutable in-memory collection; domain T payload is source-owned. More...
struct  CollectionModelOptions
 Policies for a scene-owned in-memory model adapter. More...
class  Column
 Lay visible children from top to bottom. More...
struct  ColumnCaption
 Owning fixed-schema caption and sizing, without identity bookkeeping. More...
struct  ColumnId
 Provider-assigned column identity; typed row accessors define column values. More...
class  ComboBox
 Retained editable model-backed choice; the tree owns its ordinary editor and trigger. More...
struct  ComputedStyle
 Owning resolved presentation; no actions or model state are encoded. More...
class  Control
 UI-owned one-line control with owning Unicode text and local paint coordinates. Mutate through the free setters between frames. The frame owner translates local commands and intersects their clips with NodeGeometry, then renders before leaving tree.frame. Focus/enabled flags are presentation snapshots only; EventRouter owns input eligibility. More...
struct  ControlStyle
 Owning paint values; no theme engine or behavior is encoded here. More...
struct  CustomTitleDecoration
 Owning title ends; each holds at most 64 UTF-8 bytes and 16 printable one-cell graphemes. More...
struct  DataPresentation
 Owning scalar state of one immutable presentation producer. More...
struct  DataRangeStatus
 Owning facts from the same successful virtual-view preparation, without another model read. More...
struct  DataStateConfig
 Construction-only settings for retained data presentation. More...
struct  DataStateLabels
 Owning message expressions resolved once under the receiving scene width policy. More...
class  DataStateView
 Retained Column composition of status and content; it owns no provider, cache or second runtime. More...
struct  DeclarativeGridOptions
 Owning automatic-placement settings; counts are distinct from GridOptions track policies. More...
struct  DecodedScalar
 Decoded Unicode scalar with its exact interval in the original byte stream. More...
struct  DiagnosticContext
 Fixed-size causal token; zero fields mean unobserved, never a reused identity. More...
struct  DiagnosticNodeId
 Session-local identity; never an object address. More...
struct  DiagnosticOptions
 Allocation budget applied when recording is enabled. More...
struct  DiagnosticRecord
 Fixed-size bounded record. More...
class  Diagnostics
 Explicit, thread-safe metadata recorder. Disabled by default; no clocks or I/O. enable/disable/snapshot are control-plane operations outside measure/layout/paint. Record admission tries the mutex once; it never waits, allocates, or calls user code. The recorder must outlive every DiagnosticScope borrowing it. A scheduler can share ownership. More...
class  DiagnosticScope
 Stack-only causal context on one thread; restores the previous scope on every exit. No global recorder is installed: lookups require the same explicitly supplied recorder. Must be destroyed in stack order on the constructing thread, before the recorder. More...
struct  DiagnosticSnapshot
 Owning bounded snapshot; copy only between frames, serialize after releasing the recorder lock. More...
class  Dialog
 Full-host structural root containing at most one visible opaque panel. This is deliberately not a SizedWidget: panel limits never narrow the structural root. Layout is pure; input confinement, registration, anchors and title/body composition belong to the managed owner. No observer, callback, model or tree reference is retained here. More...
struct  DialogCloseOptions
 Optional finite close chrome settings; the glyph occupies three terminal cells. More...
struct  DialogOptions
 Owning panel geometry and managed input settings, in terminal cells. More...
struct  DispatchResult
 Owning routing outcome; empty identities mean no eligible target/handler. More...
class  DocumentBytePage
 Immutable window sharing page credit until its final owner releases it. More...
struct  DocumentByteRange
 Half-open original logical-byte range; an omitted end requests this snapshot through EOF. More...
struct  DocumentCheckpoint
 Exact sparse anchor, never an approximate requested location. More...
class  DocumentCopy
 Immutable bounded byte copy whose accounting outlives its payload. More...
class  DocumentDecoder
class  DocumentDecoderCheckpoint
struct  DocumentDecodeResult
 Committed feed progress or a transactional failure with its byte location. More...
struct  DocumentDecoderLocalResult
 Owning local proof outcome; no input view or source owner is retained. More...
struct  DocumentDecoderOptions
 Encoding selection, malformed-input policy and per-call work bound. More...
struct  DocumentError
 Failure with an optional native provider cause, preserved by source operations. More...
struct  DocumentExportOptions
 Bounded export work configuration, independent of range/document size. More...
struct  DocumentExportResult
 Export outcome, including the prefix preserved after an error. More...
class  DocumentExportSink
 Worker sink; storage/output policy belongs to the host implementation. write borrows bytes only for its call and must report a partial prefix even on error. Implementations must not retain the borrowed span or invoke UI code. A blocking sink retains its own cancellation latency; the exporter cannot forcibly interrupt it. Callers serialize an entire export per sink; concurrent write/finish is unsupported. More...
struct  DocumentFastScroll
 Optional Viewer-only absolute fast navigation policy; no runtime or source ownership. More...
class  DocumentFileSink
 Cold exclusive file sink. Existing paths are never overwritten, including the source file. The first worker write atomically creates the output. A failed/cancelled export preserves its explicitly requested partial output; no rollback or durability is promised. More...
struct  DocumentHexOptions
 Fixed raw-byte rows; auto-fit may choose a smaller row at preparation time. More...
class  DocumentHighlightCheckpoint
class  DocumentHighlighter
struct  DocumentHighlighterOptions
 Fixed-capacity policy copied into checkpoints. More...
struct  DocumentHighlightResult
 Committed progress; errors leave their triggering transition uncommitted. More...
struct  DocumentIndexOptions
 Fixed RAM and per-call worker bounds. More...
struct  DocumentIndexProgress
 Prefix knowledge; exact total exists only after EOF. More...
struct  DocumentLineLocation
 Bounded lookup result. More...
 Metadata qualified by the source namespace. More...
struct  DocumentOperationFailure
 Source/admission cause and, when applicable, the precise decoder failure. More...
class  DocumentReadBatch
 Explicit source-owning provisional batch, confined to its creating worker. Read pages can outlive the batch, but must not be published before successful seal. Destruction closes the backend before returning metadata credit; it performs no I/O validation and cannot turn an abandoned batch into a committed result. More...
struct  DocumentReadRequest
 Owning request dispatched through the existing executor. More...
struct  DocumentRevision
 Exact document namespace and provider revision. More...
struct  DocumentSearchMatch
 Immutable owning selection; remains readable after session/source replacement. text is the exact decoded UTF-8 literal. snippet contains bounded preceding whole-grapheme context and the match; it is empty when the match exceeds its snippet cap. Neither string borrows source pages or UI state. More...
struct  DocumentSearchOptions
 Query/work/result limits, independent of document extent or total match count. More...
class  DocumentSearchSession
 Bounded worker cursor for exact, case-sensitive literal search without normalization. Search starts at the real source origin so grapheme boundaries are proven. Query, KMP/scalar maps, scratch and selected results use source->budget(). Sources must be seekable; unsupported streams return UNSUPPORTED explicitly. Operations serialize on this session, but start/advance belong on workers: they may wait for another operation, and advance performs source I/O. No UI reference or callback is retained. Cancellation preserves consistent accepted input; a later advance can resume when the query/request/revision is unchanged. A revision change fails instead of mixing matches from different generations. The byte quantum limits logical source admissions/processing; an underlying provider's cold replay or blocking I/O can still occupy its worker longer. Capacity failures preserve exact budgetDemand; budgetPeak includes retained session/page storage plus the failed operation, excluding source/provider pins and other callers' retained matches. These are capacities, not process RSS. More...
struct  DocumentSearchStep
 Value-only progress with at most one selected owning result. More...
struct  DocumentSourceOptions
 Page bounds limit windows, never logical line length. More...
class  DocumentView
 Read-only retained document viewport; source I/O, decoding and layout run on application workers. Construct with ui::viewer for automatic scene-owned preparation. Paint only consumes immutable frames. Raw tree emplacement provides an empty viewport until a managed source is attached. More...
struct  DocumentViewConfig
 Bounded text projection; these limits never restrict logical line length. More...
struct  DocumentViewStatus
 Owning scalar observation; no source I/O or preparation is performed by status commands. More...
struct  DocumentWriteReply
 One synchronous sink admission, including partial writes followed by an error. More...
class  DropDown
 Read-only main display with complete model-backed popup browsing. More...
struct  EditCapabilities
 Explicit source guarantees; unsupported atomicity is never inferred. More...
struct  EditCommitResult
 Explicit per-field result of a non-atomic submit. More...
class  EditEndpoint
 Source capability adapter; calls must return promptly without UI I/O. External work is submitted through the application's existing scheduler/worker path. submit() returns PENDING for admission, or a qualified final result; applyReply() on the edit session handles later delivery. Unconditional endpoints must serialize backend acceptance for each target; rejecting a second in-flight request is valid. More...
class  EditFieldKey
 Owning field identity; local shorthand is deliberately not persistent. More...
struct  EditingFinishedEvent
 Owning completion observation; does not perform another validation or model update. More...
struct  EditOptions
 Bounded retained editing, independent of collection extent. More...
struct  EditorChord
 Owning exact editor shortcut; only identities surviving router key translation are accepted. More...
class  EditorCommandResult
 Owning checked editor command, preserving exactly its collector reporting receipt. Construction is private: adapters cannot mistake an unrelated failure for an already reported command. Copying preserves the receipt without keeping a scene or widget alive. No implicit expected conversion exists. More...
struct  EditReceipt
 Owning acknowledgement qualified independently of current navigation. More...
struct  EditRecord
 One bounded immutable field-value read, never a whole-provider materialization. More...
struct  EditRequest
 Owning bounded write request usable on the existing worker path. More...
struct  EditTarget
 Frozen write destination; ordinal hints and nearest positions are excluded. More...
class  EventRouter
 UI-owned focus and synchronous bubbling over an existing WidgetTree. Tree and Scheduler must outlive the router. Destroy on its creating UI thread outside a router callback; violation terminates. All operations reject wrong-thread calls before touching user state. Dispatch/invoke/bind reject nested dispatch with WOULD_BLOCK. References borrowed by handlers cannot escape. No terminal bytes or queue are produced. Allocation failures become NO_MEMORY; callback exceptions become CALLBACK_FAILED. Focus changes request paint; geometry invalidation never disables keyboard access. More...
struct  EventRouterOptions
 Bounded router storage; no event queue is created. More...
struct  FieldValidation
 Owning validation presentation; messages remain meaningful without color. More...
class  FileDocumentProvider
 Cold file adapter reusing FileLogModel raw worker I/O without record limits. Exact document revision advances on every observed extent or file generation change. Calls are serialized by the caller; native metadata/read handles are owned by each operation. More...
struct  FileLogFailure
 Copyable diagnostic; nativeCode is errno/GetLastError for native failures, otherwise zero. More...
 Worker-observed byte metadata; byteExtent is never a row count. More...
class  FileLogModel
 File-backed rich model with optional bounded WindowSource delivery. Creation owns the path without opening it. All I/O methods are worker-only; they do not start threads. Every operation owns its native handle and bounded block cache. No row history, dense row index, mapping or complete-file text is retained. Callers schedule operations on their existing executor. Published pages use the WindowSource budget and remain immutable. More...
struct  FileLogOptions
 Fixed bounds independent of file length; no row index is constructed. More...
struct  FileLogReadFailure
 Exact failure of one worker load; safe to copy into that job's completion. More...
struct  FileLogSearchResult
 One bounded search step; repeat from nextByteOffset when reachedEnd is false. More...
struct  FillCommand
 Fill an owning half-open area with styled one-cell ASCII spaces. More...
class  FindBar
 Retained query/navigation/count composition over owning document or model search results. The UI tree owns all children. The document recipe is synchronous and bounded; the model recipe uses the existing application's background executor. Direct construction creates no asynchronous service. Read low-level observations only inside tree.read; use the existing Ref commands between frames. More...
struct  FindBarAppearance
 Manual child appearances and ordinary retained layout defaults. More...
struct  FindLimits
 Independent source/result caps; query admission uses the ordinary editor TextLimits. More...
class  FindMatch
 Owning immutable selected range; retains original data, never a scene or widget. Empty handles represent empty-query/no-match states. Old handles remain readable after replacement; Ref.current() determines whether their result identity still belongs to the current search. More...
struct  FindSearchOptions
 Independent worker scan and retained-result budgets for model-backed literal search. More...
class  FinitePositionResolver
 Read-only finite model navigation without retaining the source or any row payload. Snapshot ownership remains with the model/application. Each call temporarily locks the weak snapshot, returning CLOSED after its last owner retires. Calls may run concurrently only when the snapshot's read/index implementation is worker-safe. locateRow must be a bounded index. No fallback scans or ordinal guessing are used. For UI use, keep change proofs small; large configurable proofs run on the existing worker path. This adapter neither schedules work nor subscribes to model updates. More...
class  FiniteTextDocument
 Explicit owning finite UTF-8 document/session; no UI ownership or file I/O. Whole-buffer segmentation and existing snapshot history have costs proportional to finite admitted text. Large/windowed editors use the metadata-only map with their own boundary proofs and history. Caller serializes operations; borrowed text expires on successful text mutation or destruction. There are no callbacks. Logical identity, selection and history survive view replacement and SaveAs. More...
struct  FiniteTextDocumentOptions
 Explicit finite-buffer adapter configuration; not a windowed editor. More...
class  FiniteWindowProvider
 Opt-in finite Model adapter without changing exact-count Model semantics. Keeps the existing immutable domain snapshot externally owned; copies only inline values into charged pages. This read-only delivery adapter does not forward model editing, query, search, or extent APIs; retain the original model binding for those operations. Dynamic values need an explicit storage codec and are deliberately not accepted. The snapshot must satisfy ModelSnapshot's worker-safe read/destruction contract. Create the WindowSource with initialRevision equal to snapshot->revision(). More...
class  FormField
 Retained label/editor/help/message composition using the ordinary vertical layout. The tree owns the field and its children. No model, scheduler or transaction is created by this widget. Read snapshots only inside tree.read; mutating free functions are UI-only outside frames. More...
struct  FormFieldAppearance
 Manual style/layout defaults; semantic field rules are configured separately. More...
struct  FormFieldOptions
 Owning composition settings for an explicitly supplied custom editor. More...
struct  FrameAppearance
 Resolved frame parts; absent parts inherit the ordinary control state. More...
struct  FrameGlyphs
 Owning custom source; each glyph must be one printable one-cell grapheme, at most 64 bytes. More...
struct  FrameOptions
 Owning advanced frame settings; legacy BorderOptions remains a literal value type. More...
class  FrameOutput
 Exclusive transport boundary, borrowed by FrameWriter for its lifetime. Implementations own submitted bytes, perform no I/O in submit, and preserve the exact unsent suffix on deadline/stop without an error. An accompanying error marks uncertain progress even on deadline/stop. All errors may have unknown effects. One executor calls all methods; no callbacks or concurrent calls are supported. A successful flush means bytes accepted, not hardware/display acknowledgement. More...
struct  FrameSides
 Present frame sides, also defining one-cell content insets. More...
class  FrameWriter
 Bounded owner of last committed and pending frames; never performs I/O in submit. One executor owns every call and destruction; external synchronization is needed for transfer. The output reference must outlive this non-movable writer. No callbacks, background work or implicit destructor flush. Destroying with pending output requires closing that output session before any other writer is used. A deadline/stop without error retains the exact transaction. Any transport error or inconsistent progress permanently poisons this writer and invalidates its committed frame. Recovery requires closing/joining the old transport, then a new writer whose first full transaction sends CAN and the mode baseline. This requires terminal support for CAN abort of this encoder's CSI/UTF-8 prefixes; arbitrary external output requires an owner-established fresh parser instead. Reopening alone does not reset the parser. Never restart output while the old native worker can write. More...
struct  FrameWriterLimits
 Owning writer resource caps. At most two capped frames coexist. More...
class  Gauge
 Noninteractive horizontal determinate gauge with widget-owned fill text. Paint has no owning allocation or polling; text remains alive until the enclosing frame ends. Value mutations are UI-only and use checked tree operations or existing onPrepare callbacks. Manual style defaults are construction-only; dynamic styling uses the existing style resolver. More...
struct  GaugeOptions
 Owning strictly determinate gauge settings. More...
struct  GlyphAppearance
 Logical glyph overrides; absent values retain the control's owning manual map. More...
struct  GlyphId
 Output-only glyph index scoped to one buffer between clear/resize/move. More...
struct  GlyphSelection
 Complete logical selection; resolution and copies never allocate. More...
struct  Grapheme
 Owning metadata for a half-open UTF-8 byte range. More...
class  GraphemeText
 Owning validated UTF-8 and immutable extended grapheme measurements. More...
class  Grid
 UI-owned Grid implementing the existing pure Layout contract. Every visible child needs a placement. All spans are checked, including hidden/stale entries. Later siblings paint/hit above earlier siblings; placement order does not change stacking. Intrinsic tracks absorb child demand, then Row's allocation rules apply independently on each axis. Constructors own settings; invalid settings are reported by Layout methods. Layout errors are INVALID_ARGUMENT, NODE_LIMIT, INVALID_GEOMETRY or NO_MEMORY. No I/O, retained spans or tree traversal. More...
struct  GridCell
 Owning explicit placement, keyed by full identity rather than visible sibling index. More...
struct  GridItemOptions
 Owning parent-child relationship; omitted coordinates request automatic placement. More...
struct  GridOptions
 Owning sparse grid configuration; no implicit tracks or automatic placement. More...
struct  GridPlacementPlan
 Owning preflight result independent of any tree identity or visibility. More...
struct  GridPosition
 Resolved local origin in the same order as the input relationships. More...
struct  GridPresentation
 Backgrounds only; these values never inherit into child control state styles. More...
struct  GridRowStyles
 Optional owning row backgrounds; logical row zero is even. More...
struct  GridScrollOptions
 Owning opt-in to the existing scroll-controller lifecycle, fixed before mount. More...
struct  GzipDocumentOptions
 Fixed RAM and replay policy; limits do not restrict logical document size. More...
class  GzipDocumentProvider
 Optional gzip-only source with bounded RAM checkpoints and cancellable replay. Logical offsets are decompressed byte offsets. Exact logical extent is unknown until every concatenated member and physical EOF have been validated. Gzip headers, CRC/ISIZE, truncation and trailing garbage are checked strictly. Previously returned bytes can precede a later member-integrity error; they do not prove whole-archive validity. A failing read publishes none of that call's partial output, and never reports clean EOF. More...
class  HelpView
 Ordinary nonmodal focus-scope container; its sole content is an existing ScrollArea. More...
struct  HelpViewOptions
 Ordinary help pane options; open/close bindings belong to the application. More...
struct  HexByteCell
struct  HexRowOptions
struct  HexRowResult
struct  HistoryAvailability
 Effective history commands available without adopting a model revision or changing presentation. More...
class  InputDecoder
 Bounded streaming decoder for a deliberately small 7-bit VT input profile. More...
struct  InputIssue
 Byte offsets describe the consumed rejected prefix, without raw ANSI diagnostics. Subsequent discard bytes are accounted by InputStep::consumed, not another issue. More...
struct  InputModeReport
 Owning DECRPM reply; the caller validates the expected mode and protocol phase. More...
struct  InputModifiers
 Observed modifiers, also usable by a native input adapter. More...
struct  InputOptions
 Explicit resource and timing policy, independent of terminal capabilities. More...
struct  InputPointerContext
 Owning decoder context; validity changes are ordered by the caller. More...
struct  InputPointerPrecision
 Owning precise pointer sample; pixel coordinates are zero based in the text area. More...
struct  InputProbeCandidate
 Syntactically matching reply within an explicitly expected window. More...
struct  InputProbeWindow
 A single-use expected reply window, captured at sequence start. More...
struct  InputSizeReport
 Owning CSI 48 text-area dimensions, in wire order; not terminal authentication. More...
struct  InputStep
 One bounded pull result; no hidden output queue. More...
class  KeyBinding
 Weak UI-affine command observation; destruction never unregisters the command. More...
class  KeyBindingId
 Scene-local, never reused registration identity; not a persistence key. More...
struct  KeyBindingsSnapshot
 Independent historical read snapshot; scope disconnect is observed on the next UI admission/query. More...
struct  KeyBindingView
 Owning read DTO, retaining no callback, resolver, subscription or widget. More...
struct  KeyCapabilities
 Application-supplied native phase support, independent of physical-key identity. More...
struct  KeyConflict
 One bounded pair relation; ordinals refer only to its owning snapshot. More...
struct  KeyEvent
 Owning key value without an inferred physical keyboard scan code. More...
struct  KeyFormatOptions
 Owning ASCII-first formatter settings; glyph support is never inferred. More...
class  KeyHints
 One-line named-key projection; only a visible overflow action can receive focus. More...
struct  KeyHintsOptions
 Single-row compact presentation options, bounded by the canonical registration limit. More...
struct  KeyInfo
 Owning metadata normalized once before canonical publication. More...
class  KeySelection
 Copyable immutable owning shortcut selection, or a deferred typed construction error. Copies share normalized values; no source string or initializer list is retained. Moving/copying this receipt allocates nothing. Registration origin belongs to onKey. More...
class  Label
 Noninteractive Unicode label; text remains data, including control characters. More...
class  Layout
 Pure container interface; callbacks run inside tree.read and an enclosing tree.frame. No callback may call tree operations, recurse into layout, mutate models, retain spans, or perform I/O. Independent algorithms for Grid/Overlay can implement this interface without changing Widget. More...
struct  LayoutChildPolicy
 Owning pure layout result for one direct child. More...
struct  LayoutGeometrySnapshot
 Owning geometry independent of later live invalidation or widget destruction. descendantClip precedes ancestor intersection; an off-viewport target may have an empty cumulative clip while its unclipped surface rectangle remains useful for reveal. More...
class  LayoutItem
 Optional const sizing interface, read only within tree.read. More...
struct  LayoutPadding
 Owning nonnegative padding in terminal cells. More...
class  LayoutSnapshot
 Owning immutable identities and local sizes from one completed layout pass. Copies share immutable value storage, without widgets, tree owners or borrowed text. Captured values remain readable after tree invalidation, removal or destruction. Concurrent const reads are safe; assignment requires caller synchronization. More...
class  LinearLayout
 Shared Row/Column implementation; UI-owned and mutated via setLinearOptions. More...
struct  LinearOptions
 Owning linear container options. More...
class  LineEdit
 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...
class  LineEditBinding
 Scoped model/action ownership; destroy and move on UI outside frames. Tree, router and scheduler outlive the binding. Call sync before each frame. Drafts survive external revisions; confirmation detects conflict and Escape adopts latest. EditMode selects immediate publication, confirmation on focus loss, or explicit confirmation only. Admitted callbacks retain state; removal suppresses future callbacks and observer delivery. More...
struct  LineEditEvents
 Optional owning UI callbacks delivered after the legacy result, while the node remains live. Callbacks may remove the node or binding. Node removal stops subsequent delivery. Reentrant focus changes publish presentation without repeating this operation's completion or commit. More...
struct  LineEditHistoryShortcuts
 Fixed-size owning shortcuts; nullopt disables an individual binding. More...
struct  LineEditOptions
 Owning bounds and appearances for a one-line editor. More...
struct  LineEditResult
 Exact editing or confirmation result delivered on the UI thread. More...
struct  LogAppendReceipt
 Owning receipt for one atomic complete batch; drop-oldest is a successful outcome. More...
class  LogBookmarkProvider
 Bounded worker extension for log positions; unrelated to total extent. The provider owns its logical resource. Capture and resolve run on the existing application worker and must never retain borrowed commands or row payload. More...
struct  LogCheckpointOptions
 Configurable metadata bounds; no source-count limit or LRU eviction. More...
struct  LogLimits
 Positive plain-log admission and retention bounds; oversized settings are rejected. More...
struct  LogLine
 Immutable UTF-8 record with its original byte position; separators are excluded. More...
class  LogNavigation
 Weak UI-affine checkpoint session owned by an existing scene. Removing a view leaves this session alive. Handles retain no source, view or runtime. Reusing a handle explicitly resumes its history; views otherwise navigate independently. More...
struct  LogReadingCheckpoint
 Owning saved logical reading position; contains no source or view references. More...
struct  LogRestoreStatus
 Observed status belonging to a navigation session, not a widget. More...
struct  LogStatus
 Owning scalar observation; never retains record payload or widgets. More...
class  LogView
 Native bounded plain-text log with whole-grapheme wrap and a stable reading anchor. The rolling mode exclusively owns records and prepared visible-row text. External-source recipes retain bounded immutable prepared windows and node-scoped application work; paint never reads a source or parses text. Use checked tree commands between frames on UI. Construct through ManagedScene::logView or ui::logView: managed preparation and its scoped scroll-intent observation are required. Raw WidgetTree emplacement alone is not a usable log; commands and measurement return INVALID_ARGUMENT until managed initialization is present. The native frame requires right and bottom sides for its scrollbar and status/tail action. CRLF, CR and LF separate complete records; a final separator adds no phantom empty record. More...
struct  LogViewConfig
 Owning bounded-log settings; frame bars use ON_FRAME without a horizontal gutter. More...
struct  ManagedDiagnostic
 One owned error and its bounded causal trace, independent of widget lifetime. More...
struct  ManagedDiagnosticBatch
 Owning snapshot or drained history; counters saturate at size_t's maximum. More...
struct  ManagedDiagnosticContext
 Owning causal breadcrumb; source_location refers to compiler-owned static source names. More...
struct  ManagedDiagnosticOptions
 Finite error-history and causal-context budgets. All limits must be positive. More...
struct  ManagedError
 Original error plus independent runner/restoration and cleanup failures. More...
class  ManagedModel
 Weak UI handle to a model owned by one ManagedScene. Handles may be copied and destroyed on any thread. Operations require the creating UI thread. Closing the scene closes its model endpoints; handles do not extend ownership. More...
class  ManagedNavigation
 Weak UI-affine navigation handle owned by an existing scene/model scope. Removing a view does not remove its context. Closing the scene cancels pending resolution and retires all callbacks. Handles retain no model, snapshot, widget, source or runtime. Copied immutable channel snapshots and bookmarks remain ordinary independent values. More...
struct  ManagedOptions
 Finite managed bookkeeping budgets, independent of the existing tree/queue limits. More...
class  ManagedScene
 Additive lifecycle owner over one existing Application subtree. UI affine and nonmovable. Application/tree/router/scheduler must outlive this owner. Destroy outside callbacks and tree frames; self/ancestor node removal in callbacks is supported. Standard controls retain their existing binding and LineEdit semantics. Use run() to preserve detailed managed failures alongside runner and restoration errors. No raw owning Property or individual binding token escapes this owner. More...
class  ManagedSource
 Read-only weak scene-owned derived value; no writable alias or subscription escapes. More...
class  ManagedState
 Weak UI handle to a scene-owned Property, never an owning alias. Copies and destruction of the handle are thread independent. Operations check the captured UI identity before locking the property. Immutable snapshots follow Property's transfer requirements. The Application must outlive the scene, but not this weak handle. More...
struct  MeasuredChild
 Owning child input for a pure layout computation. More...
class  MemoryDocumentProvider
 Adapter retaining existing immutable shared text without copying whole input. More...
class  MemoryQueryProvider
 Explicit in-memory provider using the bounded local transform, with rejection recovery. Evaluates synchronously on UI. Use a delayed provider for work that must leave UI. Callback captures must own immutable storage; callbacks cannot retain borrowed arguments. More...
class  Menu
 Initially visible action-backed command list, without popup or submenu behavior. Actions own callback/state; the menu owns only prepared presentation and local selection. Construct through ui::menu to attach actions and routed input to the managed scene. More...
struct  MenuOptions
 Finite admission limit for an ordinary retained command list. More...
class  Model
 UI-owned source connecting immutable providers and scoped ranges to a real WidgetTree. The tree must outlive the source; use a long-lived context when views are disposable. Publisher and request tokens may outlive source/tree/scheduler. Read one pin per model per frame. Scheduler dispatch and source mutation belong between frames. More...
class  ModelBookmark
 Copyable bookmark owning metadata only; never retains model, snapshot, view or page. Copies share immutable opaque bytes without allocation. Resource identity is process-local unless the provider supplies a portable identity/codec on export. This value alone cannot reopen a source or recreate missing model data. More...
struct  ModelCheckpointOptions
 Bounded history options, independent of model row count. More...
class  ModelConsumer
 Move-only UI-owned range slot. Equal/overlapping consumers are independent. Close/destruction retires only this consumer; outstanding worker reservations survive. Model and tree may close first. Destruction/move assignment on another thread terminates. More...
class  ModelFrame
 One immutable model revision retained by the frame owner for all its views. Obtain once before WidgetTree::frame, pass the same value to every view, and retain it until borrowed rendering finishes. Different models require application transactions. More...
struct  ModelOptions
 Finite per-model storage and work budgets; all fields must be positive. More...
struct  ModelPosition
 Owning scalar position; offset is meaningful only in the declared data revision. More...
class  ModelRange
 Independent owner for borrowed rows and provider error text. More...
struct  ModelRangeId
 Stable identity of a scoped range consumer, distinct even for equal row intervals. More...
struct  ModelRebindOptions
 Explicit rebinding policy; omitted history options inherit the session's settings. More...
class  ModelRequest
 Copyable worker token; retains work storage and one reservation until its last owner dies. Cancellation is a stop request, never a join. Worker code must finish/release its own owners. Completion queues an owning result; no view callback runs on the worker. More...
struct  ModelResource
 Logical resource namespace, distinct from its current delivery session. Reuse an existing SourceStamp as the resource origin; no second identity issuer is needed. Keep lineage stable only while the provider can map old positions. A new unrelated document at the same path needs a different identity or lineage. More...
struct  ModelRow
 A typed domain row and its stable identity; a table uses a typed record as T. More...
struct  ModelRows
 Provider result borrowing from its immutable snapshot. More...
class  ModelSnapshot
 Immutable list/table provider storage, independent of view/source lifetime. Implement read as bounded in-memory access, without I/O, waiting or domain mutation. Every ready range of one data revision must agree, including overlapping ranges from different snapshot objects. Shared ownership does not make mutable aliases safe. Opting this source into a background model adapter requires worker-safe read access, including concurrent reads of the same immutable storage; no UI frame or thread-affine cache may be used. Snapshots and transitively owned T values must support destruction on the last owner's thread; UI reentry from a destructor requires a still-live UI context. More...
struct  MouseInputEvent
 Checked zero-based cell coordinates; no viewport clipping is performed. More...
struct  NativePointerOptions
 Advanced native pointer policy; no physical host qualification is inferred. More...
struct  NativeTerminalHandles
 Borrowed native descriptors supplied to open(); no Windows headers required. More...
struct  NavigationBindingOptions
 Independent opt-in view channels; scrolling never changes current by itself. More...
class  NavigationBookmarkCodec
 Explicit provider conversion; no generic serializer for process-local RowId/SourceStamp exists. Caller keeps this object alive and serializes operations. Descriptor strings stay valid throughout each outer operation. Callbacks run synchronously without a new runtime; providers performing I/O must be invoked on the application's existing worker path. Codec payloads contain location metadata only, excluding values, secrets, drafts, Undo/Redo history and write authority. Callback-internal allocations are provider-owned and are not accounted by the envelope limits. No codec or borrowed span is retained. More...
class  NavigationCheckpoint
 Immutable owning checkpoint; copies share bytes and never retain providers or UI objects. A default value is empty/invalid and allocates nothing. Capture/load stage a new value; failures never replace a caller's existing checkpoint or navigation state. Envelope checksum detects accidental corruption, not malicious modification or authenticity. Parse validates structure only; restore requires a matching provider and does not apply positions to views, grant write permissions, or resolve a position against live data. More...
struct  NavigationCheckpointEntry
 A metadata-only position and its purpose; never a model value or draft. More...
struct  NavigationCheckpointOptions
 Positive metadata capacities; none depends on the logical model extent. More...
class  NavigationCheckpointStorage
 Optional synchronous storage seam; no filesystem or scheduler is installed implicitly. Caller owns and serializes this adapter. Invoke load/save on an existing worker when the adapter can block; these functions do not dispatch work or enforce UI affinity. Read/write failures may affect external storage, but cannot alter memory checkpoints or navigation state. Atomic replacement/durability is the adapter's explicit contract. More...
struct  NavigationCodecDescriptor
 Provider-issued durable identity; not a path inferred by the checkpoint library. More...
struct  NavigationOptions
 Positive bounded metadata limits; no source extent or viewport is retained. More...
struct  NavigationPosition
 Published logical position, independent of provider revisions and screen coordinates. Full revision-qualified bookmarks are read separately from ManagedNavigation::bookmark(). ITEM positions compare by complete row identity; their offset is always zero. More...
class  NavigationSelection
 Immutable bounded selected identities; copies share payload without allocating. More...
class  Node
 Copyable typed observer; never owns or exposes an unchecked widget pointer. More...
struct  NodeGeometry
 Owning arranged geometry; invalid geometry must never be used for hit-testing. More...
struct  NodeId
 Owning identity, independent of addresses; zero is never a live identity. More...
struct  NodeSnapshot
 Owning snapshot of a live node; handles remain checked after subsequent mutations. More...
struct  NotificationOptions
 Fixed host budgets and explicit localization; no borrowed option spans. More...
struct  NotificationSnapshot
 Independent bounded queue snapshot with saturating policy counters. More...
struct  NumericRange
 Owning inclusive bounds and user increment; validated together with a numeric value. More...
class  NumericState
 Weak checked numeric source over the existing scene-owned Property runtime. Copies own no scene/widget. All reads and writes are UI-affine; saved snapshots are independent. More...
class  NumericValue
 Small owning numeric snapshot whose public operations preserve its finite range invariant. No scene, widget, callback or mutable alias is retained. Values between user ticks are valid. More...
struct  Ohlc
 One domain bucket; finite values satisfy low <= open/close <= high. More...
class  OhlcBucket
 Constant-storage domain aggregation, performed before display snapshot coalescing. One producer owns mutation; copy value() into immutable provider storage before publishing. No allocation, I/O or UI affinity. Caller chooses bucket boundaries and tick ordering. More...
class  Overlay
 UI-owned overlay using the existing traversal, geometry and sibling stacking. Later siblings are above earlier siblings for normal paint order and EventRouter hit testing. Layout methods are pure and follow Layout's borrowed-span contract. Invalid settings/policies return INVALID_ARGUMENT, checked overflow INVALID_GEOMETRY, allocation failure NO_MEMORY. More...
class  OverlayHost
 Transparent overlay with exact body identity and body-only intrinsic measurement. The managed owner binds the body before layout. Unbound hosts return INVALID_ARGUMENT. Hidden body contributes no intrinsic extent. Existing Overlay placement and sibling order apply. Pure layout methods borrow their spans only for the call and never access the tree. More...
struct  OverlayHostOptions
 Owning registration budget for a single scene overlay host. More...
struct  OverlayOptions
 Owning overlay alignment and insets; all children share the content rectangle. More...
class  PageBuilder
 One reserved worker-only builder. Never expose its writable resource after publication. More...
class  PaintContext
 Borrowed synchronous command sink supplied by the frame owner. submit must consume commands immediately or retain their text only until the enclosing WidgetTree::frame callback returns. The frame owner must render before leaving that callback. No command/text/context borrow may survive the frame. No terminal I/O here. More...
struct  ParentLayoutEdge
 Owning arranged edge before intersection with any ancestor's clip. More...
class  Password
 Protected single-line editor with numeric metadata and constant-mask frame data. The draft and snapshots are immutable PasswordValue identities. Frames do not borrow, decrypt or call application services. PASSWORD reveals grapheme count; NO_ECHO measures one cell and fixes the caret at its origin. Input-event and opted-in clipboard buffers are external plaintext; owned clipboard payload bytes are wiped before release. More...
class  PasswordBinding
 Scoped action/model ownership on the tree UI thread, outside frames. Tree, router and scheduler outlive the binding. Admitted operations retain their state across callback removal. Deferred drafts retain their baseline revision and never overwrite external changes. No operation exposes an ordinary text draft or history. More...
struct  PasswordOptions
 Owning protected-editor policy; no plaintext history, copying or cutting exists. More...
struct  PasswordResult
 Secret-free editing outcome; a commit owns only protected immutable snapshots. More...
class  PasswordValue
 Copyable identity of immutable logical bytes in protected native storage. More...
struct  PasswordValueAccessFailure
 Independent ownership and protected-access failures, without secret diagnostics. More...
struct  PasteInputEvent
 Owning raw paste bytes, possibly invalid UTF-8 or containing controls. Never forward these bytes to a terminal writer or interpret them as commands. More...
class  PointerCapture
 Move-only weak cancellation token; owns no callback, widget, tree or router. Destruction/disconnect may run on any thread and prevents future admission. Already admitted delivery keeps its callable and widget alive until return. Tokens may outlive the router. Eligibility and focus retirement are checked on UI, without background polling. More...
struct  PointerCaptureCapabilities
 Host-declared input guarantees; this value does not enable terminal reporting modes. More...
struct  PopupEntry
 Owning finite popup entry; callbacks and leaf presentation remain in ActionSet. More...
class  PopupMenu
 Sized action-backed popup plane, owned by one private managed Dialog activation. Use ui::popupMenu as an initially closed scene layer. One Ref observes this real Menu subtype; removal through ManagedScene removes its private root as well. No command store or scheduler is added. More...
struct  PopupMenuOptions
 Immutable finite popup construction options; cell extents include panel borders. More...
struct  PositionChange
 Scalar ordering operation; payload and row identities remain in the model. More...
class  PositionChangeHistory
 Optional immutable bounded ordering history owned only by supporting providers. No rows, view handles or scene references are retained by a proof. Callers obtain one map for a channel/batch, not a freshly allocated map per selected identity. More...
class  PositionChangeMap
 Immutable bounded provider proof between two revisions of a finite order. The provider must report all ordering changes truthfully; validation checks shape and arithmetic, not the contents of two snapshots. O(operation count), never O(rows). The operation cap is configurable. Large proofs belong on the existing worker path; constructing a map does not dispatch work or make a UI scan acceptable. More...
struct  PositionHistoryReply
 Qualified metadata-only proof result; expired history is an observable outcome. More...
struct  PositionMapOptions
 Bounded change-proof admission options; no model rows are retained. More...
struct  PositionMapping
 Proven mapped ordinal or gap; removed items become a gap with the requested affinity. More...
struct  PositionReply
 Owning resolution receipt; meaningful only for its matching live request. More...
struct  PositionRequest
 Immutable qualified navigation request; does not start work by itself. More...
class  PositionResolver
 Bounded provider extension independent of views, schedulers, and total extent. Implementations must not perform I/O or unbounded scans on the UI thread. I/O resolvers run on the existing source worker path and honor cooperative cancellation. Return PENDING rather than block for absent data. No second task/runtime is created. More...
class  PreparedTextHistory
 Owning, move-only staged history and already segmented restoration text. More...
class  Property
 UI-owned typed value with node-scoped observers and explicit partial delivery. WidgetTree and its Scheduler are borrowed and must outlive this object. All operations and destruction use the UI thread. Retained snapshots may outlive every UI owner. Each changed set invalidates the source target synchronously, then publishes in observer registration order on the data lane with reject overflow. No atomic multicast is promised. Callbacks run only through Scheduler between frames; reentrant set appends notifications after already accepted events. Scheduler budgets bound a self-updating callback chain. T construction/copy/move/comparison and callback construction/move must not reenter UI APIs. T destruction may reenter after replacement: the old value is retained until all publication attempts finish. Destructors must not throw or call members of an object being destroyed. More...
struct  PropertyChange
 Immutable owning value/revision pair; revision zero is the initial value. T must own its data transitively; mutable aliases must not change published snapshots. More...
struct  PropertyOptions
 Finite observer endpoint storage, independent of Scheduler queue capacity. More...
struct  PropertyUpdate
 A successful set result; notification rejection does not undo the committed value. Counts describe publication attempts, not callback execution. Accepted events can still be cancelled by source destruction, Subscription disconnect, node removal or scheduler stop. Equal set is a no-op and never retries notifications rejected by an earlier set. More...
struct  PssDeclarationOrigin
 One declaration's source coordinates, retained even when a later duplicate wins. More...
struct  PssDocument
 Owning parsed declarations and provenance; input bytes need not survive the call. Metadata is not automatically installed into a scene by CT-PSS v0. More...
struct  PssError
 Allocation-free error owning its bounded subject; message always has static lifetime. More...
struct  PssFileError
 Allocation-free original file failure; the owning source identity is stored separately. Capture cause immediately after the failing operation. The standard error category must outlive this value, as required by std::error_code; the PSS file boundary uses standard static categories. No file handle, input view, path view, or dynamically formatted message is retained. More...
struct  PssLocation
 Position in original PSS bytes, including an accepted leading BOM. More...
struct  PssRuleOrigin
 Owning coordinates and occurrence links for one source-order rule. More...
struct  PssScalarValue
 Allocation-free declaration scalar; its owning occurrence property identifies the active field. More...
class  Publisher
 Copyable, worker-safe endpoint. It owns the closed channel state, never UI captures. May outlive Scheduler: publish then returns closed. T must own its transitively immutable data; mutable aliases must not modify it. Its deleter may run on UI or any producer thread. More...
struct  Query
 Owning domain criteria, exact indexed source, and explicit output page. This value performs no I/O. Q and its reachable data must be immutable while shared, own all worker-visible storage, and support destruction on the last owner's thread. More...
class  QueryController
 UI-owned adapter coordinating a fixed provider session and one long-lived Model. Operations require the creating UI thread and a live tree context, outside frames. Release/close before WidgetTree. Criteria and token owners are worker-safe; controller is not. Model data revisions are projection revisions; source provenance is exposed separately. More...
struct  QueryOptions
 Configurable finite query budgets; all values must be positive. More...
struct  QueryPage
 Provider's owning page at the exact source revision, before projection publication. More...
class  QueryProvider
 Provider owned by a UI query controller; workers retain only query tokens. More...
class  QueryRequest
 Copyable worker token owning criteria, source pin and one bounded reservation. Cancellation never joins. Complete queues ownership; acceptance is not UI application. Retain and retry the same result after rejected publication. No UI references are retained. More...
class  QuerySnapshot
 Derived model snapshot with distinct projection revision and exact source provenance. Retains the source pin and provider result for every borrowed row. Construction does not validate the page; QueryController validates worker results before creating this wrapper. More...
class  RadioGroup
 Ordinary one-focus-stop, model-owned resident radio group with clipped row painting. More...
class  RadioGroupBinding
 UI-only owning input/subscription registration; destroy before its borrowed tree/router. More...
class  RadioGroupValue
 Coherent immutable resident options and optional selection; copies share all row storage. No mutable aliases escape. Empty construction represents no options and no selection. Selection changes reuse the prepared row/index projection; retained values outlive the UI. More...
struct  RadioItem
 One immutable, validated single-line radio caption and its input eligibility. More...
struct  RadioOption
 Owning cold caption and eligibility for ordinary radio model creation; no hand-written ID required. More...
struct  RenderError
 Owning renderer error, independent of the scene lifetime. More...
struct  RenderLimits
 Owning full-frame resource caps; over-limit scenes fail without truncation. More...
struct  RgbColor
 Owning RGB color; terminal encoding belongs to the output adapter. More...
class  Row
 Lay visible children from left to right. More...
class  RowCollection
 Immutable owning rows with explicit provider identity and bounded identity lookup. More...
struct  RowId
 Provider-assigned row identity, independent of position; increment generation on reuse. More...
struct  RowLookup
 Owning lookup result; no row storage is borrowed. More...
struct  RowRange
 Half-open logical row interval; arithmetic is checked before provider access. More...
struct  SceneResourceError
 Owning resource position, independent of parser, scene and widget lifetimes. More...
class  Scheduler
 One UI executor; call dispatch only between frames, never during layout/paint. create captures its calling thread. Callbacks run there without the queue lock. No method mutates a widget or requests a frame: downstream callbacks own invalidation. Destruction must occur on UI, outside dispatch, after UI tokens; publishers may survive it. Callbacks must terminate promptly: budgets bound counts, not application callback wall time. More...
struct  SchedulerClock
 Borrowed clock service, invoked under the scheduler mutex on UI or producer threads. read must be thread-safe, nonblocking and non-reentrant. Context must outlive Scheduler; stopped publishers never read it. Null read selects the steady clock. More...
struct  SchedulerConnection
 UI owns the subscription; workers receive copies of only the publisher. More...
struct  SchedulerDispatch
 One bounded dispatch result; stop can interrupt the cycle after the current callback. More...
struct  SchedulerMetrics
 Thread-safe, copied metrics; no retained samples or unbounded history. More...
struct  SchedulerOptions
 Finite resource limits and maximum work per dispatch; all fields must be positive. More...
struct  SchedulerQueueMetrics
 Queue counters saturate at UINT64_MAX; latency is measured in clock milliseconds. More...
class  ScrollArea
 Retained ordinary content owner with optional one-cell frame and embedded bars. Add one content root (a Row/Column/Grid for multiple controls). This is not virtualization. Initialize between frames before commands/preparation/binding. Before initialization paint is safe and empty; checked commands fail with INVALID_ARGUMENT. No callbacks or publication occur in layout or paint. Construct/mutate on the tree's UI thread; tree owns final widget destruction. More...
struct  ScrollAreaGeometry
 Owning normalized placement result; every represented cell lies in the allocation. The viewport defines the logical range. childClipSize excludes overlay ownership strips; it therefore may be smaller than viewport only for explicitly selected OVERLAY. More...
struct  ScrollAreaLayoutSnapshot
 Owning observation captured after a complete low-level layout pass. Capture every area's observation before preparation invalidates geometry. The future managed snapshot adapter performs this automatically; this value itself retains no tree or widget. More...
struct  ScrollAreaOptions
 Owning ordinary-area settings; content is retained rather than automatically virtualized. OVERLAY keeps nominal range/visibility and may obscure edge content. ON_FRAME requires frame. Embedded bars share the area's input/paint owner and never add focus stops. More...
struct  ScrollAxisConfiguration
 Owning initial configuration of one exact scrolling axis. More...
struct  ScrollAxisMetrics
 Owning one-axis logical metrics, independent of materialized content. More...
struct  ScrollAxisSnapshot
 Owning immutable observation of one axis at a controller revision. More...
class  ScrollBar
 Independent one-axis projection of an owning controller, without a content offset. Initialization chooses a sole standalone metrics writer or an area-owned read projection. Before initialization paint is empty and checked commands fail with INVALID_ARGUMENT. No timers, virtual-view adapters, tree ownership or observer runtime are retained. More...
struct  ScrollbarAppearance
 Resolved scrollbar parts; absent values inherit the ordinary control state. Colors and attributes are shared by both axes; glyphs are orientation-specific. More...
struct  ScrollbarAxisGlyphs
 Sparse owning glyph overrides for one axis, validated before painting. Every nonempty source must be exactly one printable one-cell grapheme under the receiving WidthPolicy. More...
struct  ScrollBarOptions
 Owning standalone bar settings, validated before mounting or replacement. No callbacks, tree identity, borrowed storage, timers or terminal resources are retained. More...
struct  ScrollbarSkin
 Owning scrollbar skin; no callbacks, borrowed views, timers or layout changes. Ends occupy existing track cells, below the thumb in paint priority; their clicks keep ordinary track behavior. Both axes share part colors/attributes through the existing style resolver. FRACTIONAL_BLOCK selects a blank track and eighth-cell placement beneath explicit part overrides. It rejects nonblank tracks, custom thumb shapes/caps, ASCII primitives and non-one-cell coverage glyphs. Missing resolved scrollbar colors use a local dark surface and normal/focused/disabled ink palette; explicit part/segment/control colors keep priority. Other presets retain terminal-default colors. More...
struct  ScrollbarThumbAppearance
 Complete resolved thumb segment values, shared by both axes. Missing declarations inherit the common thumb while resolving this value. More...
class  ScrollController
 Shared owning, UI-affine scroll values built on the existing ScrollState. The controller owns no tree/widget/router references or observer runtime. Public access is read-only after checked creation; mounted commands must use their checked node/tree owner. Shared ownership does not permit concurrent mutation. Final destruction only releases values and may occur on any thread; checked queries require the creating UI thread. More...
struct  ScrollControllerOptions
 Owning pre-mount configuration; no callbacks, tree or widget references. More...
struct  ScrollControllerSnapshot
 Owning two-axis observation, safe to retain after the controller is destroyed. Values are independent of subsequent UI changes; concurrent const reads are safe. More...
struct  ScrollExtent
 Logical content extent; ordinary retained layout still has int32 cell bounds. More...
struct  ScrollFractionalThumb
 Owning thumb interval in eighths of a track cell; no references or invalidation. More...
struct  ScrollLayoutOptions
 Value-only placement inputs, without a frame painter or widget lifetime. More...
struct  ScrollOffset
 Owning exact integral position and sub-cell remainder; no affinity or invalidation. More...
struct  ScrollPreparationResult
 Owning result; successful preparation does not imply successful final rendering. More...
struct  ScrollRange
 Derived viewport-start range, preserving the existing ScrollState count contract. More...
struct  ScrollRepeatServices
 Existing scheduler services for held arrows and eligible fractional input transitions. Tree and borrowed callback captures must outlive the binding, node and admitted calls. The node's existing UiScope owns timer lifetime. now may throw; exceptions become CALLBACK_FAILED. Fractional profiles use the configured smoothDurationMs; integral profiles remain immediate. More...
struct  ScrollRevealTarget
 Owning one-shot reveal input for an explicit low-level scene preparation. Managed scenes retain their own focus/explicit serial and completion watermark. Custom scenes must likewise pass this value only while their request is pending; scrolling alone is not a request. More...
class  ScrollState
 Owning one-dimensional logical position with floor quantization to integral rows. Integral and fractional parts are stored separately, preserving every uint64 index even above 2^53. Fractions use double precision; no epsilon snapping is performed. Saturation discards overscroll. No allocation, callbacks, tree invalidation or I/O occurs. The owner serializes access; views use UI only. More...
struct  ScrollThumb
 Owning one-cell-track thumb geometry; values are relative to the track start. More...
struct  ScrollTrack
 Owning local one-cell track; axis determines whether length is rows or columns. More...
struct  SearchHighlight
 Half-open byte range in the original label, always on complete grapheme boundaries. More...
struct  SearchItem
 Immutable copied top-K item. It never owns the source corpus or worker index. More...
struct  SearchOptions
 Configurable finite source, index, query and result budgets. More...
struct  SearchRank
 Deterministic rank. Smaller tuple sorts first; source ordinal resolves equal scores. More...
struct  SearchResult
 Immutable bounded search value, distinct from QueryPage<T> and source row count. More...
class  SearchSelection
 Owning bounded selection; display bytes survive source and scene retirement. More...
struct  SearchSourceIdentity
 Exact source identity independent of a result model's publication revision. More...
class  SecretView
 Synchronous read-only byte borrow, valid only during its callback. More...
class  SecureString
 Move-only bounded secret storage with checked synchronous plaintext access. More...
struct  SecureStringAccessFailure
 Callback and cleanup diagnostics; opaque user errors are never logged. More...
struct  SecureStringCapabilities
 Applied guarantees, rather than potential platform features. More...
struct  SecureStringCleanupErrors
 Allocation-free cleanup diagnostics in chronological order. More...
struct  SecureStringError
 Owning, secret-free library diagnostic; nativeCode is zero when inapplicable. More...
struct  SecureStringFailure
 A primary failure and independently preserved bounded cleanup diagnostics. More...
struct  SecureStringOptions
 Requested mandatory guarantees, established even for an empty value. More...
struct  Shortcut
 Owning shortcut alternatives; one registration invokes at most once per completed event. More...
struct  ShortcutBehavior
 Command admission independent of low-level KeyEvent binding behavior. More...
struct  ShortcutError
 Allocation-free diagnostic independent of source and scene lifetime. More...
struct  ShortcutOptions
 Configurable finite parser limits; every value must be positive. More...
struct  ShortcutSequence
 One owning multi-stroke alternative, without action or held-key state. More...
class  SizedWidget
 Widget with owning policies, changed only through setSizePolicy on UI. More...
struct  SizePolicy
 Owning independent policies for width and height. More...
class  Slider
 Horizontal numeric view using the existing control style, layout and input runtime. NumericValue remains authoritative through its binding. Paint reads only prepared presentation. More...
struct  SliderAppearance
 Complete resolved Slider part paints, inheriting the ordinary control state. More...
class  SliderBinding
 Own one native slider binding without a second scheduler or numeric model runtime. Tree/router/scheduler must outlive this UI-affine token. Admitted callbacks retain their state. More...
struct  SliderGlyphs
 Owning custom one-cell printable graphemes used for slider parts. Each value is at most 64 UTF-8 bytes and must measure one cell under the receiving width policy. More...
struct  SliderOperationEvent
 Owning operation observation; model revisions and live onChange calls can be numerous. More...
struct  SliderOptions
 Horizontal slider presentation and user-input configuration. More...
struct  SourceAnchor
 Owning navigation intent, including optional capability-gated operations. More...
class  SourceArena
 Fixed-capacity monotonic storage shared by typed/text pages; no upstream fallback. Allocate all transitively owned page payload through this resource. Deallocation is deferred until the last arena owner releases it. Allocation and construction happen on one worker. More...
class  SourceBudget
 Thread-safe credit ledger; final page/worker release may happen on any thread. More...
struct  SourceBudgetOptions
 Configurable root shared by typed pages, future text pages and replacement sessions. More...
struct  SourceBudgetUsage
 Simultaneous source reservations; bytes are requested capacities, not process RSS. More...
struct  SourceCapabilities
 Immutable navigation capabilities of the delivery channel, not of the complete model. More...
class  SourceCapacityObserver
 Move-only worker-safe capacity observation; destruction unregisters without waiting. More...
class  SourceCredit
 Move-only credit; backing storage must be destroyed before this final credit owner. More...
struct  SourceCursor
 Owning opaque gap token; no arithmetic, row count or pointer semantics. More...
struct  SourceReadCommand
 Immutable worker command; maxRows is an upper bound, never an extent. More...
struct  SourceReadReply
 Owning result with fixed metadata; no optional/variant deep copies. More...
struct  SourceStamp
 Immutable source namespace; replacement sessions must share their old budget root. More...
class  Spacer
 Invisible flexible space along its direct Row/Column parent's main axis. Does not paint, accept input, focus, or schedule work. Other parents are rejected. More...
class  Spacing
 Invisible fixed cell space along its direct Row/Column parent's main axis. More...
class  SparseDocumentIndex
 Worker-owned sparse index with adaptive thinning and resumable bounded scans. Serialize mutable operations using the existing executor. Lines are never materialized. Empty documents have one empty line; a final separator introduces a trailing empty line. More...
class  SpinBox
 Numeric editor with one ordinary LineEdit and two nonfocusable step buttons. The containing tree owns all three child nodes. NumericValue is the only committed source. More...
class  SpinBoxBinding
 UI-affine owner of the editor source and nonfocusable arrow actions. More...
struct  SpinBoxResult
 Existing text editing outcome and its exact numeric receipt, if publication occurred. EDITED means a draft was accepted; it does not imply a numeric commit. Accepted spellings are preserved. More...
class  Spinner
 Retained indeterminate indicator using the receiving scene's existing scheduler. Construct through ui::spinner or ManagedScene::spinner to enable animation. A standalone tree.emplace remains a valid static presentation. All access is UI-affine through WidgetTree. Paint borrows only widget-owned text until the enclosing frame ends. More...
struct  SpinnerOptions
 Owning single-row indicator configuration; no thread or timer is created by this value. More...
class  StatusBar
 Ordinary horizontal status sections with a full-allocation background. Children retain their existing layout, text and input contracts. The bar is not a focus stop and has no message timer. Managed scenes synchronize eligibility; low-level callers call syncStatusBar before painting after eligibility changes. More...
struct  StyleAxisSize
 One tagged style mode; changing mode leaves no former exact-size constraint. More...
struct  StyleDeclarations
 Typed declarations; absent values preserve less-specific rules or widget defaults. More...
class  StyleEngine
 UI-owned style transaction coordinator; tree must outlive this nonmovable object. Bindings own metadata and only observe Node handles. Stale bindings are pruned on the next successful operation. Destruction leaves already computed widget values intact. One engine may own a widget's style at a time; overlapping engines are unsupported. No notifications, I/O, workers or hot reload. All mutations reject active frames and wrong-thread calls before work. More...
struct  StyleError
 Allocation-free error; message borrows a static string literal. More...
struct  StyleId
 Output-only style index scoped to one buffer between clear/resize/move. More...
class  StyleLayerHandle
 Weak UI-affine observer; destruction does not remove its layer. More...
struct  StyleLayerOptions
 Aggregate logical owning payload budgets; base slots count as layers. More...
struct  StyleLayerSource
 Owning provenance snapshot for one real engine layer, including unknown typed sources. The observing handle never owns the scene. Retaining document extends only immutable metadata lifetime. More...
struct  StyleLayerUpdate
 Replace an existing layer, or remove it when sheet is absent. More...
struct  StylePaintDeclarations
 Sparse paint attributes for an existing presentation part. More...
struct  StyleRegistration
 Owned metadata for one checked target in an atomic binding batch. More...
struct  StyleRoleLimits
 Limits paid only by opt-in semantic registrations. More...
struct  StyleRolePalette
 Owning role projection; retain a const shared snapshot across node/engine retirement. More...
struct  StyleRolePatch
 Cold sparse paint patch; names never encode focus or selection state. More...
class  StyleRoleRegistration
 UI-thread scoped registration; the engine retains only a weak observer. Copies share participation. Dropping the last copy retires it without callbacks; use unregisterRoles for explicit paint invalidation while the node remains live. Retained palette snapshots own their data and never assert that a node is live. More...
struct  StyleRoleValue
 One immutable-at-publication role in normal/focused/disabled/selected/header/caret order. More...
struct  StyleRule
 One owned selector/declaration pair in source order. More...
struct  StyleSelector
 Conjunction of optional type, id, classes, one state and read-only; no hierarchy combinators. More...
struct  StyleSheet
 Owned immutable-at-use rules; constructing typed values may allocate and throw. More...
struct  StyleSizing
 Sparse style sizing; legacy min-width remains solely in minWidth. More...
class  StyleSnapshot
 Immutable resident presentation with independently sparse extension blocks. Widget bindings share equal values. Construction can allocate; all read access and flattening are allocation-free. Retain the owning shared pointer to keep borrowed block references alive across a style publication or destruction of the originating widget. More...
struct  StyleTarget
 Owned subject metadata, supplied explicitly for built-in or custom widget types. More...
class  Subscription
 UI-owned move-only cancellation token. Release before Scheduler. Disconnect is immediate logically; an executing callback owns its captures until return. Destruction/move assignment on a foreign thread terminates (affinity contract violation). More...
class  Switch
 One-line boolean switch using the ordinary CheckBox binding and theme. More...
class  SwitchChrome
 Owning validated switch decorations, independent of any widget or scene. More...
struct  TableColumn
 A typed owning column definition; identity is independent of visual order. More...
struct  TableColumnOptions
 Owning metadata for a typed column; validation remains part of table preparation. More...
struct  TableColumnSpec
 Owning column recipe whose identity is assigned by tableColumns. More...
struct  TerminalError
 Owning error value, independent of session lifetime. More...
class  TerminalFrameOutput
 Non-owning adapter; session must outlive adapter and writer. The writer exclusively controls session output until it is destroyed. Session read/size remain available to the same executor. Close is always owner-managed. More...
struct  TerminalOptions
 Session resource bounds and cancellation/resize sampling cadence. More...
struct  TerminalRead
 Bounded owning transport result; earlier results are never invalidated. More...
class  TerminalSession
 Move-only terminal mode and I/O owner; no I/O belongs in paint/measure. More...
struct  TerminalWrite
 Owning output progress for this flush call, not a rendered-frame commit. More...
struct  TextAnchorOptions
 Finite metadata retention, independent of logical document size. More...
class  TextChangeMap
 Bounded metadata-only helper for a text provider; not a PositionResolver. Caller serializes every operation. Creation allocates; publication and resolution allocate nothing, perform no I/O or callbacks, and inspect only bounded metadata. Missing proof returns UNAVAILABLE. The enclosing provider must validate/snap mapped scalar hints to actual grapheme boundaries before publishing TEXT replies. This avoids a whole-document grapheme index requirement. Bookmarks contain scalars only. Content-state tokens are positive, provider-local values, not logical resource identities. More...
struct  TextClip
 Owning metadata for the maximal whole-cluster prefix in a cell budget. More...
struct  TextCommand
 One horizontal text run; controls display placeholders, never line breaks. More...
struct  TextEditedEvent
 Accepted user text delta, including history commands; owns the exact existing operation result. More...
struct  TextError
 Owning error value, independent of the failed input's lifetime. More...
class  TextHistory
 Specialized owning text history with allocation-free publication. More...
struct  TextHistoryOptions
 Configurable bounds and explicit-boundary grouping for text history. More...
struct  TextHistorySnapshot
 Owning UTF-8 bytes and byte offsets validated during preparation. More...
struct  TextInputEvent
 One Unicode scalar, not a grapheme cluster; Alt may be present. More...
struct  TextLimits
 Owning limits checked without silently truncating input or clusters. More...
struct  TextMappedPosition
 Intermediate scalar mapping; not a boundary-validated PositionReply. More...
class  TextSaveTicket
 Owning save acknowledgement qualification; retains target metadata, never document bytes. A ticket alone does not perform I/O or grant write authority. The application saves the bytes observed at its revision and acknowledges only successful writes. More...
class  TextSegment
 One immutable whole-grapheme byte range retaining its original owning input. More...
class  TextSegments
 Immutable bounded token collection; copies retain one input and its metadata without copying text. More...
struct  TextSelection
 Byte-boundary selection owned by the document session, independent of a view. More...
struct  TextSplice
 Scalar text replacement proof; does not read or retain document bytes. Units are chosen by the enclosing provider; the finite adapter uses UTF-8 bytes. A scalar mapping alone cannot prove that a mapped offset is a grapheme boundary. More...
struct  TextSplitOptions
 Owning text-analysis limits; words are Unicode-whitespace-delimited tokens, not UAX #29 words. More...
class  TextValue
 Owning literal bytes or a resource key, measured only at resolution. More...
struct  ThemeTokens
 Typed palette tokens for the built-in theme factories. More...
class  ThreeState
 Named checkbox presentation using the existing CheckBox runtime. ui::threeState binds the fixed three-state activation cycle. Direct low-level construction remains unbound and follows the explicit base binding contract. More...
struct  ToastActionEvent
 Original action identity and owning immutable data, safe after subtree removal. More...
struct  ToastData
 Immutable owning payload, independent of callback and scene lifetimes. More...
struct  ToastId
 Original center identity and never-reused record sequence. More...
struct  ToastIndicatorOptions
 Optional static or alternating one-cell diagnostic decoration. More...
struct  ToastOptions
 Owning notification request settings; copying may allocate. More...
struct  ToastPostReceipt
 Allocation-free queue admission receipt. More...
struct  ToastSnapshot
 Owning record observation; no callback or scene references. More...
struct  TokenRun
 One nonempty semantic interval in original source bytes. More...
class  UiAcknowledgement
 Copyable execution receipt; polling never waits and retains no UI owner or callback. More...
class  UiAsync
 Optional UI owner of at most one coroutine frame and one wait, with no separate runtime. Uses one permanent node-scope registration and at most one timer/data registration. Existing Scheduler capacities and dispatch budgets apply. Tree and scheduler must outlive this owner. Destruction is UI-only, does not join workers, and defers a currently executing frame's release until resume returns. No method requests redraw; coroutine application effects invalidate explicitly. More...
class  UiAsyncContext
 Weak context copied into owning coroutine parameters; never extends the UI owner's life. More...
struct  UiDeliveryOutcome
 Owning nonblocking observation of one admitted delivery. More...
class  UiEndpoint
 Copyable worker-safe endpoint for short, always deferred UI commands. The callback and its captures stay exclusively in the UI-owned Scheduler registration. Uses the existing shared CONTROL queue with REJECT; commands are never coalesced. Queue defaults and budgets come from SchedulerOptions (32 entries/32 per dispatch). May outlive its node, scene and scheduler; later publication returns CLOSED. More...
class  UiScope
 UI-owned scope disconnecting all its subscriptions and timers, in any token order. Owned callback captures survive self-close until the active dispatch returns. Arbitrary reference captures remain the caller's responsibility. Release before Scheduler. More...
class  UiTask
 Lazy move-only coroutine frame, created and released on its creating UI thread. The task owns its function parameters, never a captured coroutine lambda's closure. Direct low-level use requires a free/static coroutine function with owning parameters; ui::async separately retains its callable until the entire frame is destroyed. Allocation in the calling expression can throw before start(); no work runs until successful adoption. Only this adapter's awaiters are supported. A suspended task must not retain widget/view borrows. More...
struct  UiTaskOutcome
 UI-readable outcome remains available after context removal. More...
struct  Version
 Version components of the linked Portals library, owned by the caller. More...
class  VirtualList
 One UI-owned view with bounded owning row text and one independent model consumer. Construct with a consumer of the frame's model. Delegate owns its captures and returns owning text; it runs only during preparation and must not perform I/O, mutate models/tree, or retain row borrows. Preparation is transactional on allocation/delegate failure. The retained frame and text survive through render inside WidgetTree::frame. No row widgets, worker, hidden pin or terminal I/O exist. Use tree-checked free mutations; read getters through tree.read. Destroy on the UI owner. More...
struct  VirtualListOptions
 Owning fixed-row presentation settings; invalid heights are rejected at preparation. More...
class  VirtualRowEditParticipant
 Typed opt-in for custom editor state owned by a delegated row. Custom controls call RowContext::admitEdit before changing an unfinished draft. Opaque widget caches are not cloned or reset by the host. All operations run on the UI thread. More...
class  VirtualRows
 Bounded real widget subtrees, independent of the text-only VirtualList. More...
struct  VirtualRowsOptions
 Bounded real-child row host settings; fixed-height defaults with opt-in natural sizing. More...
struct  VirtualRowsPosition
 Owning committed row-host orientation; native cursor sources never invent ordinals. More...
class  VirtualTable
 One UI-owned table with bounded owning cell text and one independent model consumer. Construct with a consumer of the frame's model. Each column owns captures and returns owning text; each formatter runs only during preparation and must not perform I/O, mutate models/tree, or retain row borrows. Preparation is transactional on allocation/delegate failure. The retained frame and text survive through render inside WidgetTree::frame. No row widgets, worker, hidden pin or terminal I/O exist. Use tree-checked free mutations; read getters through tree.read. Destroy on the UI owner. More...
struct  VirtualTableOptions
 Owning table settings; preparation rejects invalid dimensions and exceeded budgets. Inherited VirtualListOptions define fixed body-row height, overscan, width policy and row styles. More...
struct  VisibleModelReadError
 Owning preparation/provider failure, independent of the table and provider lifetime. More...
class  VisibleModelSnapshot
 Copyable immutable ready values for one physically visible table interval. More...
class  Widget
 UI-owned extension object. Hooks borrow their arguments for one call. Models are separate explicit owners chosen by the application. Hooks must not block, perform terminal I/O, or retain contexts. Measure/arrange/paint cannot mutate the tree. More...
class  WidgetTree
 Exclusive parent/child ownership on Scheduler's UI thread. Scheduler must outlive this object. Destruction on another thread or inside a tree callback terminates; request close instead. All operations check affinity first. Logical removal is immediate and allocation-free, reclamation waits for the outermost borrow. References cannot escape edit/withScope/frame callbacks. Library allocations become NO_MEMORY; callback exceptions become CALLBACK_FAILED without undoing user effects. More...
struct  WidgetTreeOptions
 Finite storage and recursive traversal limits, including the root node. More...
struct  WidthPolicy
 Owning deterministic width policy; no font or terminal matching promise. More...
class  WindowConsumer
 Move-only UI consumer. Fetch continuation/retry tokens with takeRequest(), then dispatch on a worker. More...
class  WindowNotifier
 Copyable worker endpoint; retains only worker-safe state, never a UI source owner. More...
class  WindowPage
 Cheap owning page; copying never copies T or allocates. More...
class  WindowPin
 Owning immutable committed window, containing at most four bounded pages. More...
class  WindowProvider
 Worker provider; the source captures capabilities once and never calls load on UI. More...
class  WindowRequest
 Copyable worker token. Dispatch load() through the existing background executor. The library owns no worker/runtime. Copies share cancellation and one reservation; final release returns capacity after the provider, workspace, results and queued owners have stopped using it. More...
struct  WindowRow
 Immutable typed row; use arena storage for all dynamically owned payload. More...
class  WindowSource
 Tree-scoped source using only existing scheduler queues; no total/origin/runtime is required. More...
struct  WindowSourceOptions
 Positive bounded storage/work defaults, independent of logical source length. More...
class  WorkerStorageBuild
 Nonmovable build scope, valid only inside withBuild's worker callback. More...
struct  WorkerStorageId
 Generation-fenced slot identity; carries no payload ownership. More...
class  WorkerStorageLease
 Light retirement capability; locking it can never acquire payload/State ownership. More...
struct  WorkerStorageStats
 Allocation-capacity observations, distinct from process RSS. More...
class  WorkerStorageValue
 Opaque worker-owned payload. Destruction must be worker-safe and nonthrowing. More...

Concepts

concept  ColumnProjection
 An owning copyable callable that projects a borrowed immutable row.
concept  ColumnFormatter
 A copyable formatter returning exactly owning GraphemeText for a projection result.

Typedefs

using RoutedEvent = std::variant<ActionEvent, KeyEvent, TextInputEvent, PasteInputEvent, MouseInputEvent>
 Synchronous input value; callback borrows it only until return.
using ApplicationCause
 Original component error; no formatted text or borrowed exception is retained.
using CheckBoxResult = std::expected<PropertyUpdate<bool>, TreeError>
 Exact Property set outcome; errors mean no commit, successful receipts can reject notifications.
using CheckStateResult = std::expected<PropertyUpdate<CheckState>, TreeError>
 Exact typed Property set receipt; successful commits can reject notifications.
using DocumentSearchFailure = DocumentOperationFailure
 Search-specific spelling of the shared document operation failure.
using InputTime = std::uint64_t
 Caller-supplied monotonic milliseconds; no wall clock or I/O is used.
using InputEvent
 Independent owning result, usable beyond decoder reset/destruction.
using InputProtocolEvent = std::variant<InputSizeReport, InputModeReport>
 Terminal protocol data kept separate from user input and single-use probe windows.
using KeyTextResolver = std::function<std::expected<std::string, TextResourceError>(std::string_view)>
 Same exact resolver type as ui::TextResolver; used only during checked normalization.
using LogError = std::variant<TreeError, TextError>
 Exact native admission failure, retaining original UTF-8 diagnostics.
using VisibleModelError = std::variant<ManagedError, VisibleModelReadError>
 Exact scene access failure or owning table preparation/provider failure.
template<class T>
using ManagedEventHandler = std::function<std::expected<EventReply, TreeError>(T &, const RoutedEvent &)>
 Owning, copyable custom input adapter; arguments are borrowed for one invocation.
template<class T>
using ManagedPrepareHandler = std::function<std::expected<void, TreeError>(T &, Node<Widget>)>
 Owning, copyable custom presentation adapter at the dirty-frame boundary.
using ManagedErrorHandler = std::function<void(const ManagedDiagnostic &)>
 Scene-owned UI observer; the diagnostic is borrowed only until the call returns.
template<class T>
using ManagedViewHandler
 Owning callback after each successful virtual-view preparation, including layout retries. Both arguments are borrowed for this invocation. Copy a request to retain provider work; use its original typed completion/retry API. Do not dispatch the scheduler, repin models, or mutate the managed registry here. Low-level presentation changes are allowed.
template<class T>
using ManagedListFormatter = std::function<GraphemeText(const ModelRow<T> &)>
 Owning formatter of a borrowed visible list row into owning text. The callback runs during preparation on UI and must not retain the borrowed row.
template<class T>
using ManagedChartAccessor = std::function<std::optional<Ohlc>(const T &)>
 Owning projection of a borrowed domain row into an optional candle. The callback runs during preparation on UI; nullopt introduces a chart gap. It must not retain the borrowed row.
using ManagedChartOrigin = std::function<std::expected<std::uint64_t, TreeError>()>
 Owning chart-origin callback, evaluated in registration order before chart preparation.
using MessageResult = std::expected<MessageChoice, ManagedError>
 Immutable domain outcome, preserving the complete original managed failure.
using MessageDialog = ui::MessageBox
 Canonical composite type for ui::Ref<MessageDialog>; exactly the existing ui::MessageBox facade. The name avoids the Win32 MessageBox macro. Existing qualified handles and factory signatures remain valid.
using PasswordFailure
 Owning original causes, including independently retained callback/cleanup diagnostics.
using RadioGroupResult = std::expected<PropertyUpdate<RadioGroupValue>, TreeError>
 Exact selection commit and observer-publication receipt, or a precommit TreeError.
using RenderCommand = std::variant<TextCommand, FillCommand>
 One text or fill command, with TextCommand's synchronous borrow lifetime.
using SchedulerTime = std::uint64_t
 Monotonic milliseconds; the clock must not move backwards.
using SliderResult = std::expected<PropertyUpdate<NumericValue>, TreeError>
 Exact numeric Property operation receipt; unexpected means no commit.
using SpinnerLabelResolver = std::function<std::expected<std::string, TextResourceError>(std::string_view)>
 Owning synchronous label lookup, invoked only while staging a configuration.
using TerminalDeadline = std::chrono::steady_clock::time_point
 Absolute monotonic time used by terminal waits.
using TextValueError = std::variant<TextError, TextResourceError>
 Original text validation error or a distinct resource lookup error.
using ThemeSelector = ui::ThemeSelectorRef
 Canonical composite facade type for ui::Ref<ThemeSelector>; exactly the legacy ui::ThemeSelectorRef. The facade observes a view and its owning Apply metadata; it does not become a Widget or theme-selection model.

Enumerations

enum class  Action {
  ACTIVATE , CANCEL , MOVE_LEFT , MOVE_RIGHT ,
  MOVE_UP , MOVE_DOWN , MOVE_HOME , MOVE_END ,
  ERASE_BACKWARD , ERASE_FORWARD
}
 Frontend-independent commands; text and paste remain distinct data events. More...
enum class  ClickSource { PROGRAMMATIC , KEYBOARD , MOUSE }
 Origin of an admitted activation, without inferred physical input. More...
enum class  EventReply { IGNORED , HANDLED }
 Explicit bubbling decision; ignored continues toward the original root. More...
enum class  DispatchStatus { NO_TARGET , UNHANDLED , HANDLED }
 Distinguish a miss/ineligible target from an eligible unhandled event. More...
enum class  ApplicationPhase {
  CREATE , OPEN , INPUT , DISPATCH ,
  PREPARE , RENDER , SUBMIT , FLUSH ,
  STOP , CLOSE , CONTROL_LATENCY
}
 Application runner phase, also used to identify a failure boundary. More...
enum class  ApplicationFailure {
  INVALID_OPTIONS , ALREADY_RUN , NO_MEMORY , CALLBACK_FAILED ,
  OBSERVER_FAILED , NOT_STARTED , REENTRANT_OPERATION , BACKGROUND_FAILED
}
 Failures introduced by the runner itself. More...
enum class  NativeScreenMode { MAIN_SCREEN , ALTERNATE_SCREEN }
 Screen ownership for the native application transport. More...
enum class  AsyncError {
  INVALID_ARGUMENT , WRONG_THREAD , CLOSED , CANCELLED ,
  WOULD_BLOCK , NO_MEMORY , CALLBACK_FAILED , IDENTITY_EXHAUSTED
}
 Failures of the optional single-frame UI coroutine adapter. More...
enum class  UiTaskRestart { REJECT_RUNNING , CANCEL_PREVIOUS }
 Explicit policy for repeated actions on one owner. More...
enum class  UiTaskStatus {
  IDLE , RUNNING , SUCCEEDED , CANCELLED ,
  FAILED
}
 Retained business outcome, independent of scheduler queue acceptance. More...
enum class  BackgroundAdmission { STARTED , RETAINED }
 Whether the newest source intent was admitted or retained for a future capacity change. More...
enum class  BackgroundError {
  INVALID_ARGUMENT , UNAVAILABLE , CLOSED , WOULD_BLOCK ,
  NO_MEMORY , START_FAILED , WRONG_THREAD , LIMIT_EXCEEDED ,
  CALLBACK_FAILED
}
 Executor admission and startup failures; domain errors stay in the result value. More...
enum class  CellKind { BLANK , LEAD , CONTINUATION }
 A cell's role in a complete display grapheme. More...
enum class  CellBufferError {
  INVALID_LIMITS , INVALID_POLICY , COLUMN_LIMIT , ROW_LIMIT ,
  CELL_LIMIT , OUT_OF_BOUNDS , INVALID_GRAPHEME , POLICY_MISMATCH ,
  WIDE_AT_EDGE , GLYPH_LIMIT , GLYPH_BYTE_LIMIT , STYLE_LIMIT ,
  ALLOCATION_FAILURE
}
 Observable, owning buffer failure; no partial write or resize is returned. More...
enum class  ChartMode { LINE , CANDLES }
 Retained chart rendering mode. More...
enum class  ChartGlyphSet { ASCII , BOX_DRAWING }
 Candle brushes; Unicode falls back to ASCII when the width policy requires wide symbols. More...
enum class  ButtonChrome { BRACKETS , NONE }
 Button caption decoration; action routing and identity remain unchanged. More...
enum class  CheckState { UNCHECKED , CHECKED , MIXED }
 Explicit checkbox value; MIXED describes an aggregate or an opt-in user choice. More...
enum class  CheckCycle { TWO_STATE , THREE_STATE }
 User activation policy for an explicitly typed checkbox binding. More...
enum class  DataPhase {
  READY , LOADING , EMPTY , FAILED ,
  OFFLINE , REFRESHING
}
 Presentation facts; offline is explicit domain information, never inferred from an error string. More...
enum class  DataContentPolicy { KEEP_BODY , REPLACE }
 Explicit content policy; automatic range wrappers always keep their request-owning body live. More...
enum class  PssProperty {
  FOREGROUND , BACKGROUND , BOLD , ITALIC ,
  UNDERLINE , MIN_WIDTH , FRAME_LINE_FOREGROUND , FRAME_LINE_BACKGROUND ,
  FRAME_LINE_BOLD , FRAME_LINE_ITALIC , FRAME_LINE_UNDERLINE , FRAME_TITLE_FOREGROUND ,
  FRAME_TITLE_BACKGROUND , FRAME_TITLE_BOLD , FRAME_TITLE_ITALIC , FRAME_TITLE_UNDERLINE ,
  FRAME_ENDS_FOREGROUND , FRAME_ENDS_BACKGROUND , FRAME_ENDS_BOLD , FRAME_ENDS_ITALIC ,
  FRAME_ENDS_UNDERLINE , SCROLLBAR_TRACK_FOREGROUND , SCROLLBAR_TRACK_BACKGROUND , SCROLLBAR_TRACK_BOLD ,
  SCROLLBAR_TRACK_ITALIC , SCROLLBAR_TRACK_UNDERLINE , SCROLLBAR_THUMB_FOREGROUND , SCROLLBAR_THUMB_BACKGROUND ,
  SCROLLBAR_THUMB_BOLD , SCROLLBAR_THUMB_ITALIC , SCROLLBAR_THUMB_UNDERLINE , SCROLLBAR_ENDS_FOREGROUND ,
  SCROLLBAR_ENDS_BACKGROUND , SCROLLBAR_ENDS_BOLD , SCROLLBAR_ENDS_ITALIC , SCROLLBAR_ENDS_UNDERLINE ,
  SCROLLBAR_ARROWS_FOREGROUND , SCROLLBAR_ARROWS_BACKGROUND , SCROLLBAR_ARROWS_BOLD , SCROLLBAR_ARROWS_ITALIC ,
  SCROLLBAR_ARROWS_UNDERLINE , SCROLLBAR_CORNER_FOREGROUND , SCROLLBAR_CORNER_BACKGROUND , SCROLLBAR_CORNER_BOLD ,
  SCROLLBAR_CORNER_ITALIC , SCROLLBAR_CORNER_UNDERLINE , SCROLLBAR_TRACK_PATTERN , SCROLLBAR_THUMB_PATTERN ,
  SCROLLBAR_ARROW_PATTERN , SCROLLBAR_THUMB_START_FOREGROUND , SCROLLBAR_THUMB_START_BACKGROUND , SCROLLBAR_THUMB_START_BOLD ,
  SCROLLBAR_THUMB_START_ITALIC , SCROLLBAR_THUMB_START_UNDERLINE , SCROLLBAR_THUMB_BODY_FOREGROUND , SCROLLBAR_THUMB_BODY_BACKGROUND ,
  SCROLLBAR_THUMB_BODY_BOLD , SCROLLBAR_THUMB_BODY_ITALIC , SCROLLBAR_THUMB_BODY_UNDERLINE , SCROLLBAR_THUMB_END_FOREGROUND ,
  SCROLLBAR_THUMB_END_BACKGROUND , SCROLLBAR_THUMB_END_BOLD , SCROLLBAR_THUMB_END_ITALIC , SCROLLBAR_THUMB_END_UNDERLINE ,
  SCROLLBAR_THUMB_SINGLE_FOREGROUND , SCROLLBAR_THUMB_SINGLE_BACKGROUND , SCROLLBAR_THUMB_SINGLE_BOLD , SCROLLBAR_THUMB_SINGLE_ITALIC ,
  SCROLLBAR_THUMB_SINGLE_UNDERLINE , SLIDER_TRACK_FOREGROUND , SLIDER_TRACK_BACKGROUND , SLIDER_TRACK_BOLD ,
  SLIDER_TRACK_ITALIC , SLIDER_TRACK_UNDERLINE , SLIDER_FILL_FOREGROUND , SLIDER_FILL_BACKGROUND ,
  SLIDER_FILL_BOLD , SLIDER_FILL_ITALIC , SLIDER_FILL_UNDERLINE , SLIDER_THUMB_FOREGROUND ,
  SLIDER_THUMB_BACKGROUND , SLIDER_THUMB_BOLD , SLIDER_THUMB_ITALIC , SLIDER_THUMB_UNDERLINE ,
  GLYPH_PROFILE , GLYPH_FALLBACK , SCROLLBAR_HORIZONTAL_TRACK_GLYPH , SCROLLBAR_HORIZONTAL_THUMB_GLYPH ,
  SCROLLBAR_HORIZONTAL_START_GLYPH , SCROLLBAR_HORIZONTAL_END_GLYPH , SCROLLBAR_HORIZONTAL_BACKWARD_GLYPH , SCROLLBAR_HORIZONTAL_FORWARD_GLYPH ,
  SCROLLBAR_HORIZONTAL_THUMB_START_GLYPH , SCROLLBAR_HORIZONTAL_THUMB_BODY_GLYPH , SCROLLBAR_HORIZONTAL_THUMB_END_GLYPH , SCROLLBAR_HORIZONTAL_THUMB_SINGLE_GLYPH ,
  SCROLLBAR_VERTICAL_TRACK_GLYPH , SCROLLBAR_VERTICAL_THUMB_GLYPH , SCROLLBAR_VERTICAL_START_GLYPH , SCROLLBAR_VERTICAL_END_GLYPH ,
  SCROLLBAR_VERTICAL_BACKWARD_GLYPH , SCROLLBAR_VERTICAL_FORWARD_GLYPH , SCROLLBAR_VERTICAL_THUMB_START_GLYPH , SCROLLBAR_VERTICAL_THUMB_BODY_GLYPH ,
  SCROLLBAR_VERTICAL_THUMB_END_GLYPH , SCROLLBAR_VERTICAL_THUMB_SINGLE_GLYPH , SCROLLBAR_CORNER_GLYPH , WIDTH ,
  HEIGHT , MAX_WIDTH , MIN_HEIGHT , MAX_HEIGHT ,
  ROLE_FOREGROUND , ROLE_BACKGROUND , ROLE_BOLD , ROLE_ITALIC ,
  ROLE_UNDERLINE
}
 PSS v0 declaration identities in metadata and compact descriptions. More...
enum class  PssOriginKind { PSS_BYTES , SYNTHETIC_TYPED }
 Coordinates describe either original PSS bytes or explicit typed ordinals. More...
enum class  PssErrorCode {
  NONE , INPUT_LIMIT , RULE_LIMIT , CLASS_LIMIT ,
  DECLARATION_LIMIT , TEXT_LIMIT , DOCUMENT_LIMIT , SOURCE_NAME_LIMIT ,
  INVALID_UTF8 , NUL_BYTE , EXPECTED_SELECTOR , EXPECTED_IDENTIFIER ,
  EXPECTED_PUNCTUATION , UNTERMINATED_COMMENT , DUPLICATE_ID , DUPLICATE_STATE ,
  UNKNOWN_STATE , UNKNOWN_PROPERTY , INVALID_VALUE , INVALID_WIDTH ,
  ALLOCATION
}
 Structured PSS errors independent of compiler wording. More...
enum class  DiagnosticEvent {
  INPUT , QUEUE_ACCEPTED , QUEUE_REJECTED , QUEUE_DISPATCH ,
  QUEUE_REPLACED , QUEUE_CANCELLED , TARGET , FOCUS ,
  ACTION , HANDLER_STARTED , HANDLER_RETURNED , PROPERTY ,
  INVALIDATION , FRAME_REQUESTED , FRAME_NOT_REQUESTED , FRAME_SUBMITTED ,
  OUTPUT , COMPLETED , QUEUE_RETURNED
}
 Metadata stages; no stage contains application text or terminal bytes. More...
enum class  DiagnosticReason {
  NONE , QUEUE_FULL , REPLACED , CANCELLED ,
  NO_TARGET , TARGET_DISABLED , STALE_TARGET , UNBOUND_ACTION ,
  UNHANDLED , HANDLER_FAILED , VALUE_UNCHANGED , VALUE_CHANGED ,
  OUTCOME_UNKNOWN , FRAME_NOT_REQUESTED , DIFF_EMPTY , OUTPUT_FAILED ,
  OUTPUT_ACCEPTED , OUTPUT_PENDING
}
 Enumerated evidence, never an exception message or inferred model value. More...
enum class  DiagnosticInput {
  NONE , KEY , TEXT , PASTE ,
  MOUSE , OTHER
}
 Input category only; scalar, clipboard, modifiers and coordinates are omitted. More...
enum class  DiagnosticState { DISABLED , ENABLED , IDENTITY_EXHAUSTED }
 Recording state, including a terminal identity exhaustion condition. More...
enum class  DiagnosticError { INVALID_ARGUMENT , NO_MEMORY , UNSUPPORTED_VERSION }
 Configuration/export failure. More...
enum class  DialogMode { MODAL , NON_MODAL }
 Input policy applied by the managed dialog owner. More...
enum class  DialogPlacement { CENTER , BELOW_START , ABOVE_START }
 Preferred panel position within the owning host. More...
enum class  DialogDismissReason { PROGRAMMATIC , CANCEL }
 Generic dismissal cause, independent of application results. More...
enum class  DialogClosePlacement { START , END }
 Which top-frame segment owns the close affordance. More...
enum class  ColorMode { TRUE_COLOR , ANSI16 }
 Color encoding selected explicitly by the terminal owner. More...
enum class  DiffError { OUTPUT_LIMIT , ALLOCATION_FAILURE }
 Bounded encoding failure; input buffers are unchanged. More...
enum class  FrameError {
  PENDING , POISONED , FRAME_LIMIT , OUTPUT_LIMIT ,
  ALLOCATION_FAILURE
}
 Submission failure; the supplied frame remains owned by the caller. More...
enum class  DocumentEncoding {
  UNRESOLVED , UTF8 , UTF16LE , UTF16BE ,
  UTF32LE , UTF32BE , WINDOWS1251 , WINDOWS1252
}
 Resolved byte encoding, or an unresolved selection. More...
enum class  DocumentDecodePolicy { REPLACE , STRICT_MODE , ESCAPE }
 Handling of malformed input; ESCAPE is reserved and unsupported. More...
enum class  DocumentDecodeStatus {
  NEED_INPUT , OUTPUT_FULL , WORK_LIMIT , DONE ,
  MALFORMED , ENCODING_UNRESOLVED , INVALID_OFFSET , UNSUPPORTED_POLICY
}
 Completion, backpressure, or typed failure of a feed call. More...
enum class  DocumentDecoderLocalStatus {
  READY , AT_END , NEED_PREFIX , NEED_SUFFIX ,
  MALFORMED , INVALID_RANGE , INVALID_ORIGIN
}
 Result of proving a decoded-scalar boundary from a fixed local original-byte window. More...
enum class  HexByteClass {
  ZERO , SPACE , PRINTABLE , CONTROL ,
  HIGH_BYTE
}
enum class  HexError { INVALID_OPTIONS , OFFSET_OVERFLOW , TEXT_TOO_SMALL , CELLS_TOO_SMALL }
enum class  DocumentLanguage { PLAIN , POSTGRESQL_LEXICAL , MYSQL_LEXICAL , MARKDOWN_SOURCE }
 Explicit lexical profiles; unknown names resolve to PLAIN. More...
enum class  DocumentSyntaxState {
  DISABLED , PENDING , READY , UNSUPPORTED_PROFILE ,
  RESOURCE_LIMIT , UNAVAILABLE , REPLAY_UNAVAILABLE , PREVIEW
}
 Syntax projection state; text remains readable while context is prepared. More...
enum class  DocumentSyntaxPolicy { AUTO , PREVIEW , EXACT }
 Recovery policy; the language still selects the lexical rules. More...
enum class  DocumentSyntaxAccuracy { NONE , PREVIEW , EXACT }
 Accuracy of the syntax roles actually displayed, independently of recovery errors. More...
enum class  SemanticRole {
  NORMAL , KEYWORD , NUMBER , STRING ,
  COMMENT , IDENTIFIER , OPERATOR , HEADING ,
  MARKUP
}
 Theme-independent source roles implemented by these profiles. More...
enum class  DocumentHighlightStatus {
  NEED_INPUT , OUTPUT_FULL , WORK_LIMIT , DONE ,
  INVALID_CONFIGURATION , INVALID_INPUT , UNSUPPORTED_PROFILE , RESOURCE_LIMIT
}
 Streaming progress, caller backpressure or an explicit lexical limitation. More...
enum class  DocumentMySqlMode { NORMAL , NO_BACKSLASH_ESCAPES }
 MySQL lexical string modes supported initially and by source SET SQL_MODE. More...
enum class  DocumentSearchDirection { NEXT , PREVIOUS }
 Literal navigation order; wrapping belongs to the caller. More...
enum class  DocumentSearchState { PENDING , FOUND , END }
 One bounded advance; PENDING is ordinary continuation, not source backpressure. More...
enum class  DocumentLinePolicy { RAW_BYTES , UTF8 , UTF16_LE , UTF16_BE }
 Policy qualifying every index checkpoint; UTF16 requires a decoder adapter. More...
enum class  DocumentLocationState { EXACT , PENDING , UNKNOWN }
 Precision of a requested line start. More...
enum class  DocumentViewMode { TEXT , HEX }
 Projection of the same original source bytes. More...
enum class  FindDirection { NEXT , PREVIOUS }
 Direction through the stored bounded prefix; both directions wrap. More...
enum class  FindSearchError {
  INVALID_ARGUMENT , LIMIT_EXCEEDED , INVALID_TEXT , NOT_READY ,
  CANCELLED , NO_MEMORY , CALLBACK_FAILED
}
 Model search failures, distinct from editor admission and scheduler/tree failures. More...
enum class  FieldStatus {
  UNCHECKED , VALID , INVALID , PENDING ,
  TECHNICAL_ERROR
}
 Presentation of the most recent explicit or editor-publication validation. More...
enum class  FramePattern {
  SINGLE , PLAIN = SINGLE , ROUNDED , DOUBLE ,
  HEAVY , ASCII
}
 Built-in frame line patterns, independent of terminal width policy. More...
enum class  FrameTitleAlignment { START , CENTER , END }
 Alignment of the maximal whole-grapheme title prefix fitting the top edge. More...
enum class  TitleDecoration {
  NONE , SPACED , SQUARE , ANGLE ,
  ROUND , PROFILE
}
 Optional top-title break decoration; NONE preserves literal legacy titles. More...
enum class  GeometryError { COORDINATE_OVERFLOW }
 Failure of a checked cell-coordinate operation. More...
enum class  GlyphProfile : std::uint8_t {
  DEFAULT , UNICODE_GLYPHS , ASCII , NF_ROUNDED ,
  NF_CHEVRON , NF_SLASH , NF_BACKSLASH
}
 Explicit glyph map, independent of colors and geometry. NF maps use Nerd Fonts 3 Powerline codepoints. Selecting one asserts host/font support; the library neither detects missing font glyphs nor installs fonts. More...
enum class  GlyphFallback : std::uint8_t { UNICODE_GLYPHS , ASCII }
 Portable replacement when the selected map fails one-cell admission. More...
enum class  GridRegion { BODY , HEADER }
 Independent local row coordinate space sharing the grid's columns. More...
enum class  GridFlow { ROW_MAJOR , COLUMN_MAJOR }
 Direction in which declarative placement searches for the next free origin. More...
enum class  GridPlacementMode { EXPLICIT , DECLARATIVE }
 Construction-time placement mode; explicit grids retain their overlap semantics. More...
enum class  GzipError {
  INVALID_HEADER = 1 , CORRUPT_DATA , CHECKSUM_MISMATCH , SIZE_MISMATCH ,
  TRUNCATED , TRAILING_DATA , HEADER_LIMIT , INFLATE_LIMIT
}
 Gzip cause carried in DocumentError::native; implicitly convertible to std::error_code. More...
enum class  InputKey {
  CHARACTER , ESCAPE , ENTER , TAB ,
  BACKSPACE , UP , DOWN , RIGHT ,
  LEFT , HOME , END , INSERT ,
  DELETE_KEY , PAGE_UP , PAGE_DOWN , F1 ,
  F2 , F3 , F4 , F5 ,
  F6 , F7 , F8 , F9 ,
  F10 , F11 , F12
}
 Semantic key identities; character uses KeyEvent::scalar. More...
enum class  KeyAction { PRESS , REPEAT , RELEASE }
 Native adapters may report repeat/release; VT emits press only. More...
enum class  MouseButton {
  LEFT , MIDDLE , RIGHT , NO_BUTTON ,
  WHEEL_UP , WHEEL_DOWN , WHEEL_LEFT , WHEEL_RIGHT
}
 SGR button identity; NO_BUTTON is used for unbuttoned motion. More...
enum class  MouseAction { PRESS , RELEASE , MOVE , SCROLL }
 Motion and wheel are separate from button transitions. More...
enum class  InputCoordinateMode { CELL , PIXEL }
 SGR coordinate interpretation selected only at a proven stream boundary. More...
enum class  InputProbeKind { PRIMARY_DEVICE_ATTRIBUTES , CURSOR_POSITION }
 Supported syntactic reply kinds, not proof of terminal identity. More...
enum class  InputIssueKind {
  INVALID_UTF8 , TRUNCATED , UNKNOWN_SEQUENCE , INVALID_SEQUENCE ,
  SEQUENCE_LIMIT , PARAMETER_LIMIT , NUMERIC_OVERFLOW , PASTE_LIMIT ,
  TIMEOUT
}
 Recoverable decode issues; timeout may also leave the decoder failed. More...
enum class  InputError {
  INVALID_OPTIONS , BACKWARD_TIME , CLOSED , FAILED ,
  OFFSET_OVERFLOW , INVALID_WINDOW
}
 Construction and call errors, separate from events caused by input bytes. More...
enum class  InputStatus {
  EVENT , NEED_INPUT , WORK_LIMIT , FINISHED ,
  FAILED , PROTOCOL
}
 Why a pull stopped; deliver its event or report before calling again. More...
enum class  KeySupport { UNKNOWN , SUPPORTED , UNSUPPORTED }
 Explicit terminal phase knowledge; UNKNOWN does not suppress routing. More...
enum class  KeyEligibility {
  ELIGIBLE , DISABLED , HIDDEN , UNBOUND ,
  OWNER_INELIGIBLE , OWNER_RETIRED , SCOPE_INACTIVE , TERMINAL_UNSUPPORTED
}
 Eligibility observed for one immutable snapshot, not a universal conflict winner. More...
enum class  KeyConflictKind { EXACT , TERMINAL_PREFIX , SHARED_PREFIX }
 Conditional alternative overlap. More...
enum class  SizeMode { AUTOMATIC , FIXED , FLEX , CONTENT }
 Independent axis allocation policy, in integer terminal cells. More...
enum class  LayoutAlign { START , CENTER , END , STRETCH }
 Alignment; center assigns floor(free/2) before the child/group. More...
enum class  LayoutOverflow { CLIP }
 Minimum/fixed sizes survive shortage and are clipped by ancestor geometry. More...
enum class  LayoutSnapshotProfile { DIMENSIONS , GEOMETRY }
 Explicit capture cost profile; dimension-only scenes keep their original path. More...
enum class  EditMode { IMMEDIATE , ON_COMPLETION , EXPLICIT }
 When an accepted editing candidate is validated and published to its model. More...
enum class  LineEditDisplayMode { NORMAL , PASSWORD , NO_ECHO }
 Immutable presentation and outbound clipboard policy; plaintext model/history remain application-owned. More...
enum class  ProgrammaticChange { RECORD , RESET_BASELINE }
 History policy of an explicit programmatic text change. More...
enum class  LineEditStatus {
  EDITED , COMMITTED , CANCELLED , COPIED ,
  CONFLICT , INVALID_TEXT , LIMIT_EXCEEDED , VALIDATION_FAILED ,
  CLIPBOARD_FAILED , FAILED , PENDING
}
 Observable editing or service outcome; rejection preserves the draft. More...
enum class  LineEditTrigger { INPUT , FLUENT , BLUR , ASYNC_VALIDATION }
 Entry path that produced an editing or confirmation outcome. More...
enum class  EditingFinishedReason { ENTER , FOCUS_LOST }
 Boundary at which the user finishes an editing operation. More...
enum class  EditingFinishedOutcome {
  APPLIED , UNCHANGED , DEFERRED , VALIDATION_REJECTED ,
  CONFLICT , FAILED , PENDING
}
 Outcome of the existing publication policy at an editing boundary. More...
enum class  FileLogError {
  INVALID_ARGUMENT , OPEN_FAILED , READ_FAILED , METADATA_FAILED ,
  RECORD_TOO_LONG , INVALID_UTF8 , FILE_CHANGED , CANCELLED ,
  NO_MEMORY
}
 File-specific failures; diagnostics retain native codes without allocating messages. More...
enum class  FileLogOperation {
  CREATE , OPEN , METADATA , READ ,
  SEARCH
}
 Operation that produced a fixed native diagnostic. More...
enum class  LogRestoreReason {
  NONE , UNSUPPORTED , RESOURCE_MISMATCH , HISTORY_UNAVAILABLE ,
  ANCHOR_MISMATCH , DELETED_SEGMENT , CHECKPOINT_CAPACITY
}
 Recoverable restore diagnostics; no outcome implicitly enables following. More...
enum class  ManagedPhase {
  MOUNT , STATE , BIND , STYLE ,
  PREPARE , INPUT , RUN , CLEANUP ,
  TEXT , LAYOUT
}
 Boundary at which a managed operation failed. More...
enum class  ModelRestorePolicy { REMEMBER , RESET }
 Remember a resource position by default; RESET explicitly selects its initial policy. More...
enum class  NavigationProjection { SAME_MODEL , PRESERVES_ROW_IDS }
 Explicit projection-domain agreement; absence from a projection never proves deletion. More...
enum class  MessageChoice {
  ACKNOWLEDGE , CONFIRM , SAVE , DISCARD ,
  CANCEL , YES , NO
}
 A requested application action; SAVE does not confirm that data was written. More...
enum class  RangeState { PENDING , READY , FAILED }
 Observable asynchronous range readiness. More...
enum class  RowLookupState { UNSUPPORTED , NOT_FOUND , FOUND }
 Identity lookup capability and outcome for a pinned provider snapshot. More...
enum class  EditStatus {
  CLEAN , DIRTY , PENDING , ACCEPTED ,
  INVALID , CONFLICT , TARGET_MISSING , READ_ONLY ,
  CLOSED , REJECTED
}
 Submission and acceptance are separate protocol states. More...
enum class  PositionKind { ITEM , GAP , TEXT }
 Position interpretation; a row, a gap, and a text mark are not interchangeable. More...
enum class  PositionAffinity { FORWARD , BACKWARD }
 Preferred surviving side when a position is deleted or text is inserted beside a mark. More...
enum class  PositionResolution {
  EXACT , NEAREST , EMPTY , PENDING ,
  UNSUPPORTED , INCOMPATIBLE , UNAVAILABLE
}
 Successful protocol outcomes; absence of support differs from missing history. More...
enum class  PositionChangeKind { SPLICE , MOVE }
 Operation in a provider-declared finite ordering change map. More...
enum class  QueryError {
  INVALID_ARGUMENT , LIMIT_EXCEEDED , NOT_READY , STALE_SOURCE ,
  CANCELLED , NO_MEMORY , CALLBACK_FAILED
}
 Domain query evaluation failures, separate from scheduler acceptance. More...
enum class  NavigationCheckpointRole { CURRENT , READING_ANCHOR , SELECTION , EDIT_ANCHOR }
 Purpose of a saved location; EDIT_ANCHOR never conveys write authority. More...
enum class  NavigationCheckpointError {
  INVALID_ARGUMENT , CORRUPT_INPUT , TOO_LARGE , UNSUPPORTED_VERSION ,
  UNSUPPORTED_CODEC_VERSION , UNSUPPORTED_CODEC , WRONG_RESOURCE , UNSUPPORTED ,
  CANCELLED , CLOSED , STORAGE_FAILURE , NO_MEMORY ,
  PROVIDER_FAILURE
}
 Persistence failures are separate from navigation resolution outcomes. More...
enum class  NumericError {
  NOT_FINITE , INVALID_RANGE , INVALID_STEP , UNREPRESENTABLE_STEP ,
  OUT_OF_RANGE , INITIAL_CONFLICT , INVALID_TEXT
}
 Allocation-free numeric validation cause, preserved by managed diagnostics. More...
enum class  PasswordDisplayMode { PASSWORD , NO_ECHO }
 Constant-glyph presentation of protected editor values. More...
enum class  PasswordPastePolicy { DISABLED , ENABLED }
 Explicit admission of plaintext supplied by the system clipboard/input decoder. More...
enum class  PasswordInputError { LINE_SEPARATOR }
 Protected editor input rules beyond UTF-8 validity. More...
enum class  PasswordStatus {
  EDITED , COMMITTED , CANCELLED , CONFLICT ,
  INVALID_TEXT , LIMIT_EXCEEDED , VALIDATION_FAILED , CLIPBOARD_FAILED ,
  FAILED
}
 Outcome of a protected edit or publication boundary. More...
enum class  PrimitiveGlyphs { UNICODE , UNICODE_GLYPHS = UNICODE , ASCII }
 One-cell decoration selection under the complete receiving WidthPolicy. More...
enum class  PssFileOperation { OPEN , READ , INPUT_LIMIT }
 File boundary that failed before a PSS document could be installed. More...
enum class  RadioSelectionMode { ON_ACTIVATION , IMMEDIATE }
 User selection publication policy; active navigation remains local to the group. More...
enum class  RenderErrorKind {
  COMMAND_LIMIT , TEXT_BYTE_LIMIT , WORK_LIMIT , POLICY_MISMATCH ,
  BUFFER_ERROR , ALLOCATION_FAILURE , INVALID_TEXT_RANGE
}
 Observable full-frame failure; no partial buffer is returned. More...
enum class  SceneResourceErrorCode {
  SYNTAX , INVALID_UTF8 , INVALID_LIMIT , SOURCE_LIMIT ,
  NODE_LIMIT , DEPTH_LIMIT , STRING_LIMIT , PROPERTY_LIMIT ,
  UNKNOWN_TYPE , DUPLICATE_TYPE , UNKNOWN_PROPERTY , DUPLICATE_ID ,
  DUPLICATE_PROPERTY , INVALID_VALUE , CHILDREN_FORBIDDEN , FILE_IO ,
  NO_MEMORY , TEXT , FACTORY , CYCLIC_TYPE ,
  TYPE_LIMIT , MATERIALIZATION_LIMIT , SECRET_LITERAL
}
 Checked resource failure; no arbitrary expression is evaluated. More...
enum class  SchedulerError {
  INVALID_ARGUMENT , WRONG_THREAD , WRONG_SCHEDULER , CLOSED ,
  WOULD_BLOCK , NO_MEMORY , REENTRANT_DISPATCH , IDENTITY_EXHAUSTED ,
  CALLBACK_FAILED
}
 Observable operation failures; no callback is started on rejection. More...
enum class  SchedulerLane { DATA , CONTROL }
 Independent finite queues; control is serviced before data each cycle. More...
enum class  SchedulerOverflow { REJECT , REPLACE_LATEST }
 Replace only this sender's pending display snapshot; never raw domain events. More...
enum class  PublishResult { QUEUED , REPLACED }
 Whether a publication appended a value or replaced its sender's pending value. More...
enum class  SchedulerWake { READY , STOPPED , TIMEOUT }
 A finite wait ended by work, explicit wake, stop or timeout. More...
enum class  ScrollAxis { HORIZONTAL , VERTICAL }
 Logical scrolling axis; X increases right and Y increases down. More...
enum class  ScrollBarPolicy { NEVER , AUTO , ALWAYS }
 Presence policy, independent of whether the content can scroll. More...
enum class  ScrollPlacement { RESERVED , OVERLAY , ON_FRAME }
 Explicit relationship between bars, content and an optional frame. More...
enum class  ScrollbarPattern {
  LEGACY , FRAME , MINIMAL , ASCII ,
  FRACTIONAL_BLOCK
}
 Opt-in scrollbar glyph presets; legacy calls retain their original appearance. More...
enum class  ScrollbarThumbPattern { LEGACY , BLOCK , ASCII , FRACTIONAL_BLOCK }
 Independent thumb source; all choices are opt-in. More...
enum class  ScrollbarArrowPattern { LEGACY , TRIANGLE , ASCII }
 Independent functional-arrow source; selecting it never enables buttons. More...
enum class  SearchError {
  INVALID_ARGUMENT , INVALID_TEXT , NOT_READY , LIMIT_EXCEEDED ,
  STALE_SOURCE , CANCELLED , NO_MEMORY , CALLBACK_FAILED ,
  UNAVAILABLE
}
 Search/provider errors, separate from scheduler and UI delivery errors. More...
enum class  SearchStrategy { PREFIX , FUZZY_PREFIX }
 Indexed term-prefix strategy; fuzzy edit distance is over normalized graphemes. More...
enum class  SecureStringStorage { NATIVE_GUARDED , WIPE_ONLY }
 Explicit storage policy; unsupported native protection never falls back. More...
enum class  SecureStringOperation {
  CREATE , ASSIGN , APPEND , CLEAR ,
  CLOSE , BORROW , ALLOCATE , LOCK ,
  DUMP , ENCRYPT , DECRYPT , RELEASE ,
  ENTROPY
}
 Operation recorded without secret bytes or exception messages. More...
enum class  SecureStringErrorCode {
  INVALID_ARGUMENT , TOO_LARGE , NO_MEMORY , UNSUPPORTED ,
  SECURITY_FAILURE , BUSY , UNAVAILABLE , CALLBACK_FAILED ,
  RELEASE_FAILED
}
 Technical failure categories independent of UI/tree errors. More...
enum class  ShortcutErrorKind {
  INVALID_OPTIONS , SOURCE_LIMIT , ALTERNATIVE_LIMIT , STROKE_LIMIT ,
  EMPTY_ALTERNATIVE , EMPTY_TOKEN , UNKNOWN_KEY , DUPLICATE_MODIFIER ,
  EXPECTED_KEY , UNSUPPORTED_SEQUENCE , INVALID_CHORD , NO_MEMORY ,
  INVALID_ACTION_SET , AMBIGUOUS_PREFIX , RESERVED_CANCEL
}
 Bounded shortcut syntax and value-validation failures, never borrowing source text. More...
enum class  SliderSkin { ASCII , LINE , ROUNDED , BLOCKS }
 Built-in one-cell slider glyph sets. More...
enum class  SliderOperationStatus { COMPLETED , CANCELLED , CONFLICT }
 One completed or interrupted numeric user operation. More...
enum class  SliderOperationKind { DRAG , STEP }
 Origin of a local numeric operation, without a global command/history identity. More...
enum class  SourceError {
  INVALID_ARGUMENT , WRONG_THREAD , CLOSED , WOULD_BLOCK ,
  NO_MEMORY , IDENTITY_EXHAUSTED , CALLBACK_FAILED , CONTEXT_ERROR ,
  UNSUPPORTED , STALE_SOURCE , INVALID_CURSOR , REVISION_CHANGED ,
  POSITION_EXHAUSTED , ROW_NOT_FOUND , ROW_TOO_LARGE , PAGE_TOO_LARGE ,
  INVALID_REPLY , NO_PROGRESS , CURSOR_CYCLE , CONTINUATION_LIMIT ,
  CANCELLED , ALREADY_COMPLETED , IO_ERROR
}
 Source protocol and admission failures, independent of a provider's storage format. More...
enum class  SpinBoxSkin { STANDARD , COMPACT , ARROWS }
 Immutable presentation of the two numeric step buttons. More...
enum class  SpinnerPreset {
  DOTS , LINE , BRAILLE , BAR_BOUNCE ,
  ARC , CIRCLE , SQUARE , TRIANGLE ,
  ARROW , BLOCKS , ELLIPSIS , PULSE
}
 Original single-row indeterminate animation sequences. More...
enum class  SpinnerDirection { FORWARD , REVERSE }
 Traversal of the finite owning frame sequence. More...
enum class  StyleState {
  ANY , NORMAL , FOCUSED , DISABLED ,
  SELECTED , HEADER , CARET
}
 Presentation states; ANY matches every state without changing behavior. More...
enum class  StyleTier { DEFAULTS , THEME , APPLICATION , USER }
 Independent cascade priority, before selector specificity. More...
enum class  StyleSizeMode { AUTOMATIC , FIXED , FLEX , CONTENT }
 State-independent style request for one allocation axis. More...
enum class  NativePointerPolicy { AUTO , OFF }
 Optional native pointer enhancement; ordinary cell input remains the fallback. More...
enum class  NativeInputOrder { UNCONFIRMED , FIFO }
 Host declaration; a successful DECRPM alone cannot establish this guarantee. More...
enum class  TerminalErrorKind {
  INVALID_OPTIONS , UNSUPPORTED , SYSTEM , CLOSED ,
  OUTPUT_PENDING , OUTPUT_LIMIT , INPUT_DECODE , OUTPUT_UNCERTAIN ,
  INPUT_LIMIT , INPUT_PROTOCOL
}
 Terminal failure classification; native_code provides platform detail. More...
enum class  TerminalProtocolIssue { NONE , INITIAL_PIXEL_CONTEXT_UNKNOWN }
 Concrete protocol context failures, independent of native errno values. More...
enum class  TerminalStatus {
  PROGRESS , DEADLINE , STOPPED , END_OF_INPUT ,
  FAILED
}
 Why an input or output operation returned. More...
enum class  AmbiguousWidth { NARROW , WIDE }
 Terminal policy for printable East Asian Ambiguous scalars. More...
enum class  EmojiWidth { ONE = 1 , TWO = 2 }
 Terminal policy for recognized emoji clusters, including single emoji. More...
enum class  TextErrorKind {
  INVALID_UTF8 , INPUT_LIMIT , CLUSTER_LIMIT , GRAPHEME_LIMIT ,
  CELL_LIMIT , INVALID_POLICY , NOT_BOUNDARY
}
 Observable text construction/cursor failure. More...
enum class  TextDisplay { PRINTABLE , UNSUPPORTED }
 How a cell renderer must display a complete logical cluster. More...
enum class  TextDocumentError {
  NO_MEMORY , INVALID_TEXT , NOT_BOUNDARY , INVALID_ARGUMENT ,
  WOULD_BLOCK , EMPTY , STALE , EXHAUSTED ,
  CONFLICT
}
 Finite document error; rejected operations preserve published state. More...
enum class  TextHistoryKind {
  TYPING , BACKSPACE , FORWARD_DELETE , PASTE ,
  CUT , REPLACEMENT , PROGRAMMATIC
}
 Semantic editing categories; only the first three can form groups. More...
enum class  TextHistoryError {
  NO_MEMORY , WOULD_BLOCK , INVALID_TEXT , NOT_BOUNDARY ,
  EMPTY , STALE , EXHAUSTED
}
 Technical history failure; no state is changed on failure. More...
enum class  TextResourceError { MISSING_RESOURCE , RESOLVER_REQUIRED , RESOLVER_FAILED }
 Observable resource lookup failure, distinct from UTF-8 validation. More...
enum class  ToastSeverity { INFO , SUCCESS , WARNING , FAILURE }
 Notification meaning, independent of persistence or application error policy. More...
enum class  ToastPostStatus { ACCEPTED_VISIBLE , ACCEPTED_QUEUED , DEDUPLICATED , DROPPED }
 Logical admission result; visibility does not acknowledge terminal output. More...
enum class  ToastPlacement { BOTTOM_END , TOP_END , BOTTOM_START , TOP_START }
 Corner of the owning content viewport. More...
enum class  ToastOverflowPolicy { DROP_OLDEST_PENDING , REJECT_NEW }
 Policy when the total retained-record budget is full. More...
enum class  UiDeliveryState { PENDING , APPLIED , CANCELLED , FAILED }
 Execution outcome, independent of successful enqueue admission. More...
enum class  VisibleModelReadState { NOT_PREPARED , PENDING , FAILED }
 A view has not published ready physical rows; no case denotes successful emptiness. More...
enum class  RevealAxes { BOTH , HORIZONTAL_ONLY }
 Axes an ancestor layout may move when revealing this child. More...
enum class  RegionalInput { UNCHANGED , OPEN , CLOSED }
 Proposed input admission for a layout region, independent of visibility. More...
enum class  TreeError {
  INVALID_ARGUMENT , WRONG_THREAD , WRONG_SESSION , STALE_NODE ,
  CLOSED , WOULD_BLOCK , NO_MEMORY , IDENTITY_EXHAUSTED ,
  NODE_LIMIT , DEPTH_LIMIT , CALLBACK_FAILED , INVALID_GEOMETRY
}
 Checked tree failures; rejected operations never start the requested callback. More...
enum class  Invalidation { NONE , PAINT , LAYOUT }
 Accumulated work; layout always includes painting. More...
enum class  SourceDirection { FORWARD , BACKWARD }
 Requested traversal; returned rows remain in display order. More...
enum class  SourceAnchorKind { ENTRY , CURSOR , TAIL , ROW }
 Entry operation; ENTRY does not promise a global origin. More...
enum class  SourceEdge { MORE , TEMPORARY_TAIL , FINAL_END }
 State beyond a ready page in the requested direction. More...
enum class  SourceReadState { READY , PENDING , HISTORY_UNAVAILABLE , FAILED }
 Distinct provider states; a short ready page never implies end. More...
enum class  WindowStatus {
  EMPTY , LOADING , READY , PENDING ,
  TEMPORARY_TAIL , FINAL_END , HISTORY_UNAVAILABLE , FAILED
}
 Current consumer outcome; ready pins remain valid through every transition. More...

Functions

template<std::size_t I, class T, class Formatter>
requires (std::is_aggregate_v<T> && I < boost::pfr::tuple_size_v<T> && ColumnFormatter<T, AggregateFieldProjection<I, T>, Formatter>)
TableColumn< T > aggregateColumn (TableColumnOptions options, Formatter formatter)
 Create a typed column for one selected field of a PFR SimpleAggregate.
template<class T, std::size_t N, class Formatter>
requires (std::is_aggregate_v<T> && N == boost::pfr::tuple_size_v<T> && detail::aggregateFieldsFormattable<T, Formatter>
(std::make_index_sequence<N>{}))
std::array< TableColumn< T >, N > aggregateColumns (std::array< TableColumnOptions, N > options, Formatter formatter)
 Create columns for every field in PFR's aggregate declaration order.
template<class T, std::size_t N, class Formatter>
requires (std::is_aggregate_v<T> && N == boost::pfr::tuple_size_v<T> && detail::aggregateFieldsFormattable<T, Formatter>
(std::make_index_sequence<N>{}))
std::expected< std::array< TableColumn< T >, N >, TextError > aggregateColumns (std::array< ColumnCaption, N > captions, Formatter formatter, WidthPolicy policy={})
 Assemble a fixed aggregate schema without manual column IDs or generations.
std::expected< std::unique_ptr< ApplicationTerminal >, TerminalError > openNativeApplicationTerminal (NativeTerminalHandles handles, TerminalOptions options={}, std::chrono::milliseconds modeTimeout=std::chrono::milliseconds{2000}, bool mouseReporting=true, NativeScreenMode screen=NativeScreenMode::ALTERNATE_SCREEN)
 Open an exclusive native transport with managed screen and optional mouse reporting.
std::expected< std::unique_ptr< ApplicationTerminal >, TerminalError > openNativeApplicationTerminal (NativeTerminalHandles handles, TerminalOptions options, std::chrono::milliseconds modeTimeout, bool mouseReporting, NativeScreenMode screen, bool buttonMotion)
 Open the native transport with an explicit session button-motion requirement.
std::expected< std::unique_ptr< ApplicationTerminal >, TerminalError > openNativeApplicationTerminal (NativeTerminalHandles handles, TerminalOptions options, std::chrono::milliseconds modeTimeout, bool mouseReporting, NativeScreenMode screen, bool buttonMotion, NativePointerOptions pointer)
 Open a native session with optional precise pointer negotiation.
template<class Input, class Output, class Work>
requires std::is_nothrow_move_constructible_v<Work>
std::expected< std::unique_ptr< BackgroundJob >, BackgroundError > makeBackgroundJob (std::shared_ptr< const Input > input, AsyncReply< Output > reply, Work work)
 Prepare owning immutable work without running it on the caller's UI thread.
template<class T>
std::expected< std::optional< ModelRequest< T > >, TreeError > prepareChart (WidgetTree &tree, Node< Chart< T > > node, const ModelFrame< T > &frame, CellSize viewport, std::uint64_t first=0)
 Prepare at most one domain bucket per viewport column between frames. Shares the caller's ModelFrame with sibling tables. Returns new pending-range work once; the caller dispatches that token, then pins again after scheduler delivery. No workers start here. Invalid OHLC ordering/nonfinite fields become gaps; provider pending/error states produce a blank plot.
constexpr std::expected< CheckState, TreeError > aggregateCheckState (std::span< const CheckState > states)
 Combine borrowed states without allocation or retained references.
std::expected< void, TreeError > setControlText (WidgetTree &tree, Node< Control > node, GraphemeText text)
 Replace owning text between frames; equal bytes/policy are a no-op, changes invalidate layout.
std::expected< void, TreeError > setControlStyle (WidgetTree &tree, Node< Control > node, ControlStyle style)
 Replace owning paint values on UI between frames; equal is a no-op, changes invalidate paint.
std::expected< void, TreeError > syncControl (WidgetTree &tree, Node< Control > node, Node< Widget > focused)
 Copy focus and ancestor eligibility on UI between frames; changes invalidate paint.
std::expected< ActionBinding, TreeError > bindButton (EventRouter &router, Node< Button > node, std::function< void()> action)
 Bind one activation callback on UI outside a frame; the caller owns the returned disconnect token.
std::expected< ActionBinding, TreeError > bindButtonClick (EventRouter &router, Node< Button > node, std::function< void(const ClickEvent &)> action, bool allowModified=true)
 Bind activation with owning parameters through the existing scoped router token.
std::expected< CheckStateBinding, TreeError > bindCheckbox (WidgetTree &tree, EventRouter &router, Node< CheckBox > node, std::shared_ptr< Property< CheckState > > model, std::function< void(CheckStateResult)> changed, CheckBoxOptions options={})
 Bind an explicit checkbox state on UI, preserving Property commit receipts.
std::expected< CheckBoxBinding, TreeError > bindCheckbox (WidgetTree &tree, EventRouter &router, Node< CheckBox > node, std::shared_ptr< Property< bool > > model, std::function< void(CheckBoxResult)> changed)
 Bind and initially synchronize a checkbox on UI outside a frame; the caller owns the returned token.
constexpr std::expected< DataPhase, TreeError > dataPhase (DataRangeStatus status)
constexpr bool isDataPending (DataPhase phase) noexcept
std::expected< void, TreeError > setDataStateView (WidgetTree &tree, Node< DataStateView > node, DataPresentation value)
std::expected< PssDocument, PssError > parsePssDocument (std::string_view bytes, std::string_view sourceName={})
 Parse strict UTF-8 PSS v0 into owning declarations and source metadata, without I/O.
template<class... Args>
requires (sizeof...(Args) > 0) && (detail::IS_LIVE_TEXT_SOURCE<std::remove_cvref_t<Args>> ||
...) && (ui::detail::TextFormatArgument<Args> && ...)
ui::ValueText text (std::format_string< const ui::detail::TextArgumentValue< Args > &... > pattern, Args &&...args)
 Declare live formatted text over explicit scalar roots, fields or value properties.
template<class Resolver, class... Args>
requires (sizeof...(Args) > 0) && (detail::IS_LIVE_TEXT_SOURCE<std::remove_cvref_t<Args>> ||
...) && (ui::detail::TextFormatArgument<Args> && ...) && std::copy_constructible<Resolver> &&
(ui::detail::KeyResourceResolver<Resolver> || ui::detail::ValueResourceResolver<Resolver, ui::detail::TextArgumentValue
<Args>...>)
ui::ValueText text (TextValue pattern, Resolver resolver, Args &&...args)
 Resolve an owning localization key and format over explicit scalar dependencies.
std::string exportDiagnostics (const DiagnosticSnapshot &snapshot)
 Serialize metadata in memory; performs no stream/file/terminal I/O.
std::expected< void, DiagnosticError > validateDiagnosticVersion (std::string_view text) noexcept
 Check the version line before interpreting an application's diagnostic export.
std::expected< std::string, DiffError > encodeDiff (const CellBuffer *previous, const CellBuffer &next, std::size_t max_bytes=1024 *1024, ColorMode colorMode=ColorMode::TRUE_COLOR)
 Encode changed complete rows into one owning VT transaction.
DocumentExportResult exportDocument (std::shared_ptr< ByteDocumentSource > source, std::shared_ptr< DocumentExportSink > sink, DocumentByteRange range={}, DocumentExportOptions options={}, std::stop_token stop={})
std::expected< std::shared_ptr< const DocumentCopy >, DocumentError > copyDocumentBytes (std::shared_ptr< ByteDocumentSource > source, DocumentByteRange range, std::size_t maxBytes=64 *1024, std::stop_token stop={})
std::expected< std::size_t, HexError > hexRowWidth (HexRowOptions options) noexcept
std::expected< HexRowResult, HexError > formatHexRow (std::span< const std::byte > input, std::uint64_t absoluteOffset, HexRowOptions options, std::span< char > text, std::span< HexByteCell > cells) noexcept
DocumentLanguage documentLanguageFromName (std::string_view name) noexcept
std::expected< void, SourceError > seekDocumentByte (WidgetTree &tree, Node< DocumentView > node, std::uint64_t offset)
std::expected< void, SourceError > refreshDocument (WidgetTree &tree, Node< DocumentView > node)
std::expected< DocumentViewStatus, TreeError > documentViewStatus (WidgetTree &tree, Node< DocumentView > node)
std::expected< void, TreeError > setFormFieldValidation (WidgetTree &tree, Node< FormField > node, FieldValidation value)
std::expected< CellPoint, GeometryError > translated (CellPoint point, CellPoint offset) noexcept
 Translate a cell point by an explicit columns/rows offset.
std::expected< GridPlacementPlan, TreeError > resolveGridPlacements (const DeclarativeGridOptions &options, std::span< const GridItemOptions > items)
 Resolve sparse placement without factories, tree access or retained input views.
std::expected< void, TreeError > setGridOptions (WidgetTree &tree, Node< Grid > node, const GridOptions &options)
 Validate and atomically copy settings on the UI owner between frames, then invalidate layout. Tree errors propagate; invalid configuration leaves the previous settings unchanged. Input is borrowed only for this call. Allocation failure returns NO_MEMORY.
std::expected< void, TreeError > setDeclarativeGridOptions (WidgetTree &tree, Node< Grid > node, const GridOptions &options)
 Atomically replace resolved declarative settings between frames on the UI owner.
std::expected< void, TreeError > setGridPresentation (WidgetTree &tree, Node< Grid > node, const GridPresentation &presentation)
 Replace owning backgrounds between frames on the UI owner.
std::expected< void, TreeError > setOverlayOptions (WidgetTree &tree, Node< Overlay > node, OverlayOptions options)
 Validate and replace settings on the UI owner between frames, then invalidate layout.
std::error_code make_error_code (GzipError error) noexcept
constexpr bool keyPressed (const InputEvent &event, InputKey key) noexcept
 Match a semantic key press or repeat without extracting the event variant.
constexpr bool keyPressed (const InputEvent &event, InputKey key, InputModifiers modifiers) noexcept
 Match a semantic press/repeat with the complete modifier combination.
constexpr bool keyPressed (const InputEvent &event, std::initializer_list< InputKey > keys) noexcept
 Match any listed semantic key on press/repeat, ignoring modifiers.
std::expected< void, TreeError > setSizePolicy (WidgetTree &tree, Node< SizedWidget > node, SizePolicy policy)
 Validate and edit policies between frames on the tree's UI owner; tree errors propagate. Changed policies invalidate layout; equal policies preserve geometry. The installed style minimum is a hard bound and a conflicting maximum rejects the update without changing the previous policy.
std::expected< void, TreeError > setLinearOptions (WidgetTree &tree, Node< LinearLayout > node, LinearOptions options)
 Validate, edit and invalidate layout between frames on the tree's UI owner; tree errors propagate.
std::expected< void, TreeError > layoutTree (WidgetTree &tree, Node< Widget > node, CellRect local, CellRect viewport)
 Measure and arrange a subtree inside an active tree frame.
std::expected< LineEditBinding, TreeError > bindLineEdit (WidgetTree &tree, EventRouter &router, Node< LineEdit > node, std::shared_ptr< Property< std::string > > model, std::function< void(LineEditResult)> result, std::shared_ptr< Clipboard > clipboard={}, std::function< bool(std::string_view)> validate={})
 Bind a one-line editor and adopt its initial model on UI outside frames.
std::expected< LineEditBinding, TreeError > bindLineEditWithEvents (WidgetTree &tree, EventRouter &router, Node< LineEdit > node, std::shared_ptr< Property< std::string > > model, std::function< void(LineEditResult)> result, std::shared_ptr< Clipboard > clipboard, std::function< bool(std::string_view)> validate, LineEditEvents events)
 Bind a one-line editor and adopt its initial model on UI outside frames.
std::expected< void, TreeError > validateLogLimits (LogLimits limits) noexcept
std::expected< LogAppendReceipt, LogError > appendLogBatch (WidgetTree &tree, Node< LogView > node, std::string_view bytes)
std::expected< void, TreeError > clearLog (WidgetTree &tree, Node< LogView > node)
std::expected< void, TreeError > followLogTail (WidgetTree &tree, Node< LogView > node)
std::expected< LogStatus, TreeError > logStatus (WidgetTree &tree, Node< LogView > node)
bool editReceiptMatches (const EditTarget &target, const EditReceipt &receipt) noexcept
 Exact qualification; this does not prove a backend applied its precondition.
bool positionReplyMatches (const PositionRequest &request, const PositionReply &reply) noexcept
template<std::copy_constructible T, class Q, class Filter, class Compare, class Stop = std::function<bool()>>
std::expected< QueryPage< T >, QueryError > transformSnapshot (const Query< T, Q > &query, Filter filter, Compare compare, QueryOptions options={}, Stop stop=[] { return false;})
 Explicit local filter, stable sort, and page; never dispatches or starts provider I/O. Source scan, comparisons and output are independently bounded. Equal sort keys retain source order. IDs and generations are copied unchanged. T is copied only for output rows. Callbacks must be bounded, worker-safe and must not retain borrowed row/criteria arguments.
std::expected< NavigationCheckpoint, NavigationCheckpointError > loadNavigationCheckpoint (NavigationCheckpointStorage &storage, NavigationCheckpointOptions options={}, std::stop_token stop={})
std::expected< void, NavigationCheckpointError > saveNavigationCheckpoint (const NavigationCheckpoint &checkpoint, NavigationCheckpointStorage &storage, std::stop_token stop={})
std::expected< PasswordBinding, PasswordFailure > bindPassword (WidgetTree &tree, EventRouter &router, Node< Password > node, std::shared_ptr< Property< PasswordValue > > model, std::function< void(PasswordResult)> onResult, std::shared_ptr< Clipboard > clipboard={}, std::function< bool(SecretView)> validate={})
 Bind and securely inspect the initial model before publishing presentation.
std::expected< void, TreeError > setGaugeValue (WidgetTree &tree, Node< Gauge > node, double value)
std::expected< void, TreeError > adjustGaugeValue (WidgetTree &tree, Node< Gauge > node, double delta)
std::expected< void, TreeError > syncBorder (WidgetTree &tree, Node< Border > node)
std::expected< void, TreeError > syncBorder (WidgetTree &tree, Node< Border > node, Node< Widget > focused)
std::expected< void, TreeError > setBorderTitle (WidgetTree &tree, Node< Border > node, const GraphemeText &title)
 Replace a frame title through the existing checked tree mutation boundary.
std::expected< void, TreeError > syncGauge (WidgetTree &tree, Node< Gauge > node)
std::expected< RadioGroupBinding, TreeError > bindRadioGroup (WidgetTree &tree, EventRouter &router, Node< RadioGroup > node, std::shared_ptr< Property< RadioGroupValue > > model, std::function< void(RadioGroupResult)> changed)
std::expected< void, TreeError > syncRadioGroup (WidgetTree &tree, Node< RadioGroup > node, Node< Widget > focused)
std::expected< CellBuffer, RenderError > renderFullFrame (CellSize size, std::span< const RenderCommand > commands, WidthPolicy policy={}, RenderLimits limits={})
 Render a deterministic fresh frame, independent of diff/damage/output code.
std::expected< void, TreeError > initializeScrollArea (WidgetTree &tree, Node< ScrollArea > node)
std::expected< void, TreeError > initializeScrollBar (WidgetTree &tree, Node< ScrollBar > node, bool geometryWriter=true)
std::expected< ScrollAreaLayoutSnapshot, TreeError > scrollAreaLayout (WidgetTree &tree, Node< ScrollArea > node)
std::expected< void, TreeError > prepareScrollArea (WidgetTree &tree, Node< ScrollArea > node, const ScrollAreaLayoutSnapshot &layout)
std::expected< void, TreeError > setScrollOffset (WidgetTree &tree, Node< Widget > node, ScrollAxis axis, ScrollOffset offset)
std::expected< void, TreeError > setScrollMetrics (WidgetTree &tree, Node< ScrollBar > node, ScrollAxisMetrics metrics)
std::expected< void, TreeError > syncScrollControl (WidgetTree &tree, Node< Widget > node, Node< Widget > focused={})
std::expected< ActionBinding, TreeError > bindScrollArea (EventRouter &router, WidgetTree &tree, Node< ScrollArea > node)
std::expected< ActionBinding, TreeError > bindScrollArea (EventRouter &router, WidgetTree &tree, Node< ScrollArea > node, ScrollRepeatServices services)
std::expected< ActionBinding, TreeError > bindScrollBar (EventRouter &router, WidgetTree &tree, Node< ScrollBar > node, bool geometryWriter=true)
std::expected< ActionBinding, TreeError > bindScrollBar (EventRouter &router, WidgetTree &tree, Node< ScrollBar > node, ScrollRepeatServices services, bool geometryWriter=true)
std::expected< void, TreeError > setScrollbarSkin (WidgetTree &tree, Node< Widget > node, const ScrollbarSkin &skin)
 Atomically prepare owning scrollbar glyphs between frames on the tree UI thread.
constexpr ScrollRange scrollRange (ScrollAxisMetrics metrics) noexcept
 Compute an exact range without unsigned subtraction or addition overflow.
constexpr bool validScrollOffset (ScrollOffset offset) noexcept
 Validate an offset remainder without losing its integral index.
constexpr std::uint64_t scrollPageStep (std::uint64_t viewport, std::uint64_t overlap=1) noexcept
 Compute one page movement using guarded unsigned subtraction.
constexpr std::expected< ScrollThumb, TreeError > scrollThumb (ScrollAxisMetrics metrics, std::uint64_t offset, std::int32_t trackLength, std::int32_t minimumThumb=1) noexcept
 Map exact logical position to a thumb without a floating-point index round trip.
constexpr std::expected< ScrollFractionalThumb, TreeError > scrollFractionalThumb (ScrollAxisMetrics metrics, ScrollOffset offset, std::int32_t trackLength, std::int32_t minimumThumb=1) noexcept
 Map an exact logical position to eighth-cell thumb placement.
constexpr std::expected< std::uint64_t, TreeError > scrollOffsetForThumb (std::int64_t position, std::int32_t travel, std::uint64_t maximum) noexcept
 Inverse thumb mapping, rounded to nearest integer with ties toward the start.
constexpr std::expected< ScrollAreaGeometry, TreeError > solveScrollLayout (CellSize allocation, ScrollExtent extent, ScrollLayoutOptions options={}) noexcept
 Solve both bar policies together without cross-frame oscillation.
std::expected< void, TreeError > validateScrollOptions (const ScrollBarOptions &options) noexcept
 Validate standalone bar settings without mutation, allocation or callbacks.
std::expected< void, TreeError > validateScrollOptions (const ScrollAreaOptions &options) noexcept
 Validate area settings and the optional existing BorderOptions.
std::expected< ScrollPreparationResult, TreeError > prepareScrollAreas (WidgetTree &tree, std::span< const Node< ScrollArea > > areas, const LayoutSnapshot &snapshot, std::optional< ScrollRevealTarget > reveal={})
 Prepare all ordinary scroll areas against one immutable geometry profile.
std::expected< Shortcut, ShortcutError > parseShortcut (std::string_view source, ShortcutOptions options={})
std::expected< void, ShortcutError > validateShortcut (const Shortcut &shortcut, ShortcutOptions options={}) noexcept
std::optional< KeyEvent > matchShortcut (const Shortcut &shortcut, const InputEvent &event, ShortcutBehavior behavior={}) noexcept
std::expected< void, TreeError > setSliderReadOnly (WidgetTree &tree, Node< Slider > node, bool readOnly)
std::expected< SliderBinding, TreeError > bindSlider (WidgetTree &tree, EventRouter &router, Node< Slider > node, std::shared_ptr< Property< NumericValue > > model, std::function< void(SliderResult)> changed, std::function< void(const SliderOperationEvent &)> finished={})
std::expected< SpinBoxBinding, TreeError > bindSpinBox (WidgetTree &tree, EventRouter &router, Node< LineEdit > editor, Node< Button > decrease, Node< Button > increase, std::shared_ptr< Property< NumericValue > > model, std::uint64_t pageSteps, std::function< void(SpinBoxResult)> result, LineEditEvents events={})
 Bind pre-mounted editor/decrement/increment children of one SpinBox.
SpinnerPreset spinnerPreset (std::string_view name) noexcept
std::expected< void, TreeError > setSpinnerActive (WidgetTree &tree, Node< Spinner > node, bool active)
std::expected< void, TreeError > setSpinner (WidgetTree &tree, Node< Spinner > node, const SpinnerOptions &options, SpinnerLabelResolver resolver={})
std::expected< void, TreeError > syncStatusBar (WidgetTree &tree, Node< StatusBar > node)
 Synchronize the bar's own disabled appearance between frames on UI.
std::expected< void, StyleError > validateStyleTarget (const StyleTarget &target) noexcept
 Validate bounded ancestor metadata without allocation or retaining input.
std::expected< StyleSheet, StyleError > parsePss (std::string_view source)
 Parse strict PSS v0 without I/O or mutation, on any thread.
ComputedStyle resolveStyle (const StyleSheet &sheet, const StyleTarget &target, ComputedStyle defaults={}, bool readOnly=false) noexcept
 Resolve one subject through the same engine used by typed and PSS installation.
StyleSheet themeFromTokens (ThemeTokens tokens)
StyleSheet modernTheme ()
StyleSheet turboTheme ()
StyleSheet nordTheme ()
StyleSheet gruvboxTheme ()
StyleSheet tokyoNightTheme ()
StyleSheet catppuccinLatteTheme ()
template<class T, class Projection, class Formatter>
requires ColumnFormatter<T, Projection, Formatter>
TableColumn< T > tableColumn (TableColumnOptions options, Projection projection, Formatter formatter)
 Compose an owning typed column from explicit projection and text formatting.
template<class T, class Member, class Formatter>
requires ColumnFormatter<T, Member T::*, Formatter>
TableColumn< T > tableColumn (TableColumnOptions options, Member T::*member, Formatter formatter)
 Deduce the domain record from a data or member-function pointer.
std::expected< TableColumnOptions, TextError > columnOptions (ColumnId id, std::string_view header, std::int32_t width=1, WidthPolicy policy={})
 Construct typed metadata from UTF-8 without unchecked header extraction.
template<class T, class Member, class Formatter>
requires ColumnFormatter<T, Member T::*, Formatter>
std::expected< TableColumn< T >, TextError > tableColumn (ColumnId id, std::string_view header, Member T::*member, Formatter formatter, std::int32_t width=1, WidthPolicy policy={})
 Deduce a field's record and validate a plain UTF-8 header.
template<class T, class Projection, class Formatter>
requires ColumnFormatter<T, Projection, Formatter>
TableColumnSpec< T > tableColumn (std::string_view header, Projection projection, Formatter formatter, std::int32_t width=1)
 Describe a fixed-schema column without exposing identity bookkeeping.
template<class T, class Member, class Formatter>
requires ColumnFormatter<T, Member T::*, Formatter>
TableColumnSpec< T > tableColumn (std::string_view header, Member T::*member, Formatter formatter, std::int32_t width=1)
 Infer a fixed-schema record from a member pointer, without explicit IDs.
template<class T, class Projection>
requires ColumnProjection<T, Projection> && std::formattable<std::remove_cvref_t<std::invoke_result_t<Projection &, const T &>>, char>
TableColumnSpec< T > tableColumn (std::string_view header, Projection projection, std::int32_t width=1)
 Describe a projected column with the existing default standard formatter.
template<class T, class Member>
requires ColumnProjection<T, Member T::*> && std::formattable<std::remove_cvref_t<std::invoke_result_t<Member T::*&, const T &>>,
char>
TableColumnSpec< T > tableColumn (std::string_view header, Member T::*member, std::int32_t width=1)
 Deduce the row type of a default-formatted member column.
template<class T, class... Rest>
requires (std::same_as<std::remove_cvref_t<Rest>, TableColumnSpec<T>> && ...)
std::expected< std::array< TableColumn< T >, 1+sizeof...(Rest)>, TextError > tableColumns (WidthPolicy policy, TableColumnSpec< T > first, Rest &&...rest)
 Assemble a fixed schema and allocate deterministic table-local identities.
template<class T, class... Rest>
requires (std::same_as<std::remove_cvref_t<Rest>, TableColumnSpec<T>> && ...)
std::expected< std::array< TableColumn< T >, 1+sizeof...(Rest)>, TextError > tableColumns (TableColumnSpec< T > first, Rest &&...rest)
 Assemble fixed-schema columns with the default display policy.
template<class... Args>
std::expected< GraphemeText, TextError > formatText (WidthPolicy policy, std::format_string< Args... > pattern, Args &&...args)
 Format and validate an owning text value with an explicit width policy.
template<class... Args>
std::expected< GraphemeText, TextError > formatText (std::format_string< Args... > pattern, Args &&...args)
 Format checked text under the default display policy.
template<class T>
CellFormat< T > cellFormat (std::format_string< const T & > pattern, WidthPolicy policy={})
 Build a reusable column formatter without a formatting lambda.
std::expected< TextSegments, TreeError > words (const GraphemeText &input, TextSplitOptions options={})
 Split on whole graphemes consisting only of scalars in Unicode White_Space.
std::expected< TextSegments, TreeError > graphemes (const GraphemeText &input, TextSplitOptions options={})
 Return one token for every existing extended grapheme, including whitespace.
constexpr TextValue text (std::string_view bytes)
 Copy literal bytes into an owning expression without interpreting braces.
template<class... Args>
requires (sizeof...(Args) > 0) && (!(detail::IS_LIVE_TEXT_SOURCE<std::remove_cvref_t<Args>> || ...))
TextValue text (std::format_string< Args... > pattern, Args &&...args)
 Format immediately into owned bytes; defer validation and measurement.
constexpr TextValue i18n (std::string_view key)
 Copy a resource key for later resolution through an explicit caller.
std::expected< void, ManagedError > setDocumentModel (ManagedScene &scene, Node< DocumentView > node, ui::DocumentSource source)
std::expected< void, ManagedError > setDocumentLineNumbers (ManagedScene &scene, Node< DocumentView > node, bool enabled)
std::expected< void, ManagedError > setDocumentWrap (ManagedScene &scene, Node< DocumentView > node, bool enabled)
std::expected< void, ManagedError > setDocumentEncoding (ManagedScene &scene, Node< DocumentView > node, DocumentEncoding encoding)
std::expected< void, ManagedError > setLogModel (ManagedScene &scene, Node< LogView > node, ui::LogSource source)
std::expected< void, SourceError > seekLogRow (WidgetTree &tree, Node< LogView > node, std::uint64_t ordinal)
std::expected< void, SourceError > seekLogByte (WidgetTree &tree, Node< LogView > node, std::uint64_t byteOffset)
std::expected< LogNavigation, SourceError > logNavigation (WidgetTree &tree, Node< LogView > node)
template<class T>
std::expected< void, ManagedError > setVirtualRowsAutoRowHeight (ManagedScene &scene, Node< VirtualRows< T > > node, bool enabled)
 Checked managed facade for natural row sizing.
Version version () noexcept
 Return the version of the linked library by value.
template<class T>
std::expected< std::optional< ModelRequest< T > >, TreeError > prepareVirtualList (WidgetTree &tree, Node< VirtualList< T > > node, const ModelFrame< T > &frame, CellSize viewport)
 Prepare a local final viewport between frames, using the same pin as every sibling view. Returns a new request exactly once for caller dispatch. No worker is started. A rejected completion can be retried on that token; cancel it if dispatch fails, then prepare again for a new receipt. Hidden ancestors cancel work and release prepared rows. Failure leaves the previous presentation intact. Tree affinity/frame errors, invalid dimensions/ranges, NO_MEMORY and CALLBACK_FAILED are explicit.
template<class T>
std::expected< void, TreeError > setVirtualListFirst (WidgetTree &tree, Node< VirtualList< T > > node, std::uint64_t first)
 Change the integral first row on UI and invalidate paint; prepare before painting again.
template<class T>
std::expected< void, TreeError > setVirtualListSelection (WidgetTree &tree, Node< VirtualList< T > > node, std::optional< RowId > selected)
 Set stable selection on UI, clear pending navigation, and invalidate paint.
template<class T>
std::expected< void, TreeError > setVirtualListOptions (WidgetTree &tree, Node< VirtualList< T > > node, VirtualListOptions options)
 Validate settings on UI, invalidate layout and require preparation before the next paint.
template<class T>
std::expected< void, TreeError > retryVirtualList (WidgetTree &tree, Node< VirtualList< T > > node)
 Explicitly retry a provider error/pending range at the next preparation; no worker is started.
template<class T>
std::expected< ActionBinding, TreeError > bindVirtualList (EventRouter &router, WidgetTree &tree, Node< VirtualList< T > > node)
 Bind arrows/Home/End, left press and integral wheel scrolling to the existing router. Caller retains the scoped binding. Tree/router outlive it; no widget pointer escapes dispatch.
template<class T>
std::expected< void, TreeError > scrollVirtualList (WidgetTree &tree, Node< VirtualList< T > > node, double rows)
 Accumulate fractional wheel input on UI using the last prepared model count.
template<class T>
std::expected< RowLookup, TreeError > ensureVirtualListVisible (WidgetTree &tree, Node< VirtualList< T > > node, const ModelFrame< T > &frame, RowId id)
 Reveal a stable row using a caller-supplied shared pin and the last prepared viewport.
template<class T, class Geometry>
requires std::same_as<Geometry, LayoutSnapshot>
std::expected< std::optional< ModelRequest< T > >, TreeError > prepareVirtualList (WidgetTree &tree, Node< VirtualList< T > > node, const ModelFrame< T > &frame, const Geometry &layout)
 Prepare a list using its captured local layout extent.
template<class T, class Geometry>
requires std::same_as<Geometry, LayoutSnapshot>
std::expected< std::optional< ModelRequest< T > >, TreeError > prepareVirtualTable (WidgetTree &tree, Node< VirtualTable< T > > node, const ModelFrame< T > &frame, const Geometry &layout)
 Prepare a table using its captured local layout extent, including its header.
template<class T, class Geometry>
requires std::same_as<Geometry, LayoutSnapshot>
std::expected< std::optional< ModelRequest< T > >, TreeError > prepareChart (WidgetTree &tree, Node< Chart< T > > node, const ModelFrame< T > &frame, const Geometry &layout, std::uint64_t first=0)
 Prepare a chart using its captured local layout extent.
template<class T>
std::expected< void, TreeError > setVirtualRowsAutoRowHeight (WidgetTree &tree, Node< VirtualRows< T > > node, bool enabled)
 Select bounded natural row sizing without changing fixed-height defaults.
template<class T>
std::expected< void, TreeError > setVirtualRowsFirst (WidgetTree &tree, Node< VirtualRows< T > > node, std::uint64_t first)
 Request a finite ordinal; mounting occurs at the existing managed service boundary.
template<class T>
std::expected< void, TreeError > scrollVirtualRows (WidgetTree &tree, Node< VirtualRows< T > > node, std::int64_t rows)
 Accumulate a relative row intent without replacing it with a stale committed position.
template<class T>
std::expected< void, TreeError > pageVirtualRows (WidgetTree &tree, Node< VirtualRows< T > > node, bool backwards=false)
 Navigate one bounded delivered page, preserving unknown source extent.
template<class T>
std::expected< void, TreeError > navigateVirtualRows (WidgetTree &tree, Node< VirtualRows< T > > node, SourceAnchor anchor, SourceDirection direction=SourceDirection::FORWARD)
 Request a capability-gated native row/tail/cursor operation.
template<class T>
std::expected< void, TreeError > notifyVirtualRowsReady (WidgetTree &tree, Node< VirtualRows< T > > node, std::uint64_t revision)
 Publish a native provider readiness revision through the existing source notifier.
template<class T>
std::expected< std::optional< ModelRequest< T > >, TreeError > prepareVirtualTable (WidgetTree &tree, Node< VirtualTable< T > > node, const ModelFrame< T > &frame, CellSize viewport)
 Prepare a local final viewport between frames, using the same pin as every sibling view. Returns a new request exactly once for caller dispatch. No worker is started. A rejected completion can be retried on that token; cancel it if dispatch fails, then prepare again for a new receipt. Hidden ancestors cancel work and release prepared rows. Failure leaves the previous presentation intact. The viewport includes the fixed one-cell header. Exceeded row/cell/text budgets return INVALID_ARGUMENT. Tree affinity/frame errors, invalid dimensions/ranges, NO_MEMORY and CALLBACK_FAILED are explicit.
template<class T>
std::expected< void, TreeError > setVirtualTableFirst (WidgetTree &tree, Node< VirtualTable< T > > node, std::uint64_t first)
 Change the integral first row on UI and invalidate paint; prepare before painting again.
template<class T>
std::expected< void, TreeError > setVirtualTableSelection (WidgetTree &tree, Node< VirtualTable< T > > node, std::optional< RowId > selected)
 Set stable selection on UI, clear pending navigation, and invalidate paint.
template<class T>
std::expected< void, TreeError > setVirtualTableOptions (WidgetTree &tree, Node< VirtualTable< T > > node, VirtualTableOptions options)
 Validate settings on UI, invalidate layout and require preparation before the next paint.
template<class T>
std::expected< void, TreeError > setVirtualTableColumns (WidgetTree &tree, Node< VirtualTable< T > > node, std::span< const TableColumn< std::type_identity_t< T > > > columns)
 Replace ordered column definitions transactionally and invalidate layout.
template<class T>
std::expected< void, TreeError > retryVirtualTable (WidgetTree &tree, Node< VirtualTable< T > > node)
 Explicitly retry a provider error/pending range at the next preparation; no worker is started.
template<class T>
std::expected< ActionBinding, TreeError > bindVirtualTable (EventRouter &router, WidgetTree &tree, Node< VirtualTable< T > > node)
 Bind arrows/Home/End, left press and integral wheel scrolling to the existing router. Caller retains the scoped binding. Tree/router outlive it; no widget pointer escapes dispatch.
template<class T>
std::expected< void, TreeError > scrollVirtualTable (WidgetTree &tree, Node< VirtualTable< T > > node, double rows)
 Accumulate fractional wheel input on UI using the last prepared model count.
template<class T>
std::expected< RowLookup, TreeError > ensureVirtualTableVisible (WidgetTree &tree, Node< VirtualTable< T > > node, const ModelFrame< T > &frame, RowId id)
 Reveal a stable row using a caller-supplied shared pin and the last prepared viewport.

Variables

constexpr std::string_view DEFAULT_SWITCH_OFF_TEXT = "[off] "
 Plain off decoration.
constexpr std::string_view DEFAULT_SWITCH_ON_TEXT = "[on ] "
 Plain on decoration.
constexpr std::size_t PSS_PROPERTY_COUNT = static_cast<std::size_t>(PssProperty::ROLE_UNDERLINE) + 1
 Number of supported PSS v0 properties.
constexpr std::size_t PSS_SCALAR_PROPERTY_COUNT = static_cast<std::size_t>(PssProperty::GLYPH_FALLBACK) + 1
 Scalar-only prefix retained by compile-time PSS descriptors.
constexpr std::size_t NO_PSS_DECLARATION = std::numeric_limits<std::size_t>::max()
 Marker for an absent effective declaration occurrence.
constexpr std::size_t MAX_PSS_ERROR_SUBJECT_BYTES = 64
 Maximum owned ASCII bytes retained in an error subject.
constexpr std::size_t MAX_PSS_SOURCE_NAME_BYTES = 4096
 Maximum UTF-8 source identity bytes in an owning runtime document.
constexpr std::size_t MAX_PSS_DOCUMENT_BYTES = 4 * MAX_PSS_BYTES
 Logical runtime document payload including all metadata occurrences.
constexpr std::size_t MAX_HEX_ROW_BYTES = 4096
constexpr std::int32_t INTRINSIC_EXTENT = -1
 Sentinel requesting the widget's intrinsic measurement.
constexpr SizePolicy DEFAULT_CONTENT_POLICY
 Intrinsic content on both axes; explicit policies remain authoritative.
constexpr SizePolicy DEFAULT_FLEX_WIDTH_POLICY
 Fill available width from a zero flex basis while retaining content height.
constexpr SizePolicy DEFAULT_EDITOR_POLICY
 Single-line editors retain one cell even during shortage; text length is not a flex basis.
constexpr SizePolicy DEFAULT_VIEWPORT_POLICY
 A bounded data viewport fills both axes without requesting the whole model extent.
constexpr std::size_t LINE_EDIT_REDO_CHORD_COUNT = 2
 Number of independently configurable Redo aliases.
constexpr SizePolicy DEFAULT_LOG_VIEW_POLICY = DEFAULT_VIEWPORT_POLICY
 Native log default: fill both viewport axes from zero flex bases; explicit SizePolicy stays literal.
constexpr SizePolicy DEFAULT_MENU_POLICY
 Natural menu extent on both axes; callers may supply an ordinary explicit SizePolicy.
constexpr std::size_t MAX_FRAME_TITLE_END_BYTES = 64
 Maximum complete UTF-8 source bytes in each title end.
constexpr std::int32_t MAX_FRAME_TITLE_END_CELLS = 16
 Maximum printable one-cell graphemes in each title end.
constexpr std::size_t DEFAULT_SCROLLBAR_GLYPH_BYTES = 64
 Default UTF-8 byte cap for each supplied scrollbar glyph.
constexpr std::size_t DEFAULT_MAX_SECRET_BYTES = 4096
 Default bound for application bytes, without Unicode interpretation.
constexpr std::size_t MAX_SECRET_BYTES = 1048576
 Hard upper bound for an individual secret, in bytes.
constexpr std::size_t MAX_SECURE_CLEANUP_ERRORS = 4
 Maximum separately retained cleanup diagnostics; excess failures are counted.
constexpr std::array< std::string_view, 12 > SPINNER_PRESET_NAMES
 Canonical names in SpinnerPreset ordinal order.
constexpr SizePolicy DEFAULT_STATUS_BAR_POLICY
 Fill offered width and request one fixed row; explicit sizing remains authoritative.
constexpr std::size_t MAX_STYLE_BASE_TYPES = 32
 Maximum owned ancestor names per style target, excluding its immediate type.
constexpr std::size_t MAX_STYLE_ROLE_NAME_BYTES = 63
 Maximum ASCII bytes in a registered lower-kebab semantic role name.
constexpr std::size_t MAX_STYLE_ROLE_PATCHES = 4096
 Maximum aggregate typed semantic patches in one admitted stylesheet.
constexpr std::size_t MAX_STYLE_RULES = 1024
 Finite typed/PSS rule budget.
constexpr std::size_t MAX_PSS_BYTES = 1024 * 1024
 Finite parser input byte budget.
constexpr std::size_t DEFAULT_TEXT_HISTORY_OPERATIONS = 128
 Default maximum combined undo and redo groups.
constexpr std::size_t DEFAULT_TEXT_HISTORY_MAX_BYTES = 1048576
 Default logical record and UTF-8 capacity budget, in bytes.

Detailed Description

Public Portals API.

Typedef Documentation

◆ ApplicationCause

Initial value:
std::variant<ApplicationFailure, TerminalError, SchedulerError, TreeError, InputError, RenderError, FrameError>

Original component error; no formatted text or borrowed exception is retained.

◆ InputEvent

Initial value:
std::variant<KeyEvent, TextInputEvent, MouseInputEvent, PasteInputEvent, InputProbeCandidate, InputIssue>

Independent owning result, usable beyond decoder reset/destruction.

◆ ManagedChartAccessor

template<class T>
using portals::ManagedChartAccessor = std::function<std::optional<Ohlc>(const T &)>

Owning projection of a borrowed domain row into an optional candle. The callback runs during preparation on UI; nullopt introduces a chart gap. It must not retain the borrowed row.

Template Parameters
TImmutable domain row shared by the model and chart.

◆ ManagedChartOrigin

using portals::ManagedChartOrigin = std::function<std::expected<std::uint64_t, TreeError>()>

Owning chart-origin callback, evaluated in registration order before chart preparation.

Returns
First model row or an original TreeError; empty callback means row zero.

◆ ManagedEventHandler

template<class T>
using portals::ManagedEventHandler = std::function<std::expected<EventReply, TreeError>(T &, const RoutedEvent &)>

Owning, copyable custom input adapter; arguments are borrowed for one invocation.

Template Parameters
TConcrete Widget subtype, including final types.

◆ ManagedListFormatter

template<class T>
using portals::ManagedListFormatter = std::function<GraphemeText(const ModelRow<T> &)>

Owning formatter of a borrowed visible list row into owning text. The callback runs during preparation on UI and must not retain the borrowed row.

Template Parameters
TImmutable domain row shared by the model and list.

◆ ManagedPrepareHandler

template<class T>
using portals::ManagedPrepareHandler = std::function<std::expected<void, TreeError>(T &, Node<Widget>)>

Owning, copyable custom presentation adapter at the dirty-frame boundary.

Template Parameters
TConcrete Widget subtype, borrowed only during the invocation.

◆ ManagedViewHandler

template<class T>
using portals::ManagedViewHandler
Initial value:
std::function<std::expected<void, TreeError>(const ModelFrame<T> &, const std::optional<ModelRequest<T>> &)>
One immutable model revision retained by the frame owner for all its views. Obtain once before Widget...
Definition model.hpp:400
Copyable worker token; retains work storage and one reservation until its last owner dies....
Definition model.hpp:564

Owning callback after each successful virtual-view preparation, including layout retries. Both arguments are borrowed for this invocation. Copy a request to retain provider work; use its original typed completion/retry API. Do not dispatch the scheduler, repin models, or mutate the managed registry here. Low-level presentation changes are allowed.

Template Parameters
TImmutable domain row shared by the model and view.

◆ PasswordFailure

Initial value:
PasswordInputError
Protected editor input rules beyond UTF-8 validity.
Definition password.hpp:37
TreeError
Checked tree failures; rejected operations never start the requested callback.
Definition widget_types.hpp:26
Independent ownership and protected-access failures, without secret diagnostics.
Definition password_value.hpp:14
A primary failure and independently preserved bounded cleanup diagnostics.
Definition secure_string.hpp:182
Owning error value, independent of the failed input's lifetime.
Definition text.hpp:87

Owning original causes, including independently retained callback/cleanup diagnostics.

Enumeration Type Documentation

◆ Action

enum class portals::Action
strong

Frontend-independent commands; text and paste remain distinct data events.

Enumerator
ACTIVATE 

Activate the target's primary command.

CANCEL 

Cancel the current interaction.

MOVE_LEFT 

Move left according to the receiving widget.

MOVE_RIGHT 

Move right according to the receiving widget.

MOVE_UP 

Move up according to the receiving widget.

MOVE_DOWN 

Move down according to the receiving widget.

MOVE_HOME 

Move to the beginning according to the receiving widget.

MOVE_END 

Move to the end according to the receiving widget.

ERASE_BACKWARD 

Erase before the current position.

ERASE_FORWARD 

Erase after the current position.

◆ AmbiguousWidth

enum class portals::AmbiguousWidth
strong

Terminal policy for printable East Asian Ambiguous scalars.

Enumerator
NARROW 

Use one cell.

WIDE 

Use two cells.

◆ ApplicationFailure

enum class portals::ApplicationFailure
strong

Failures introduced by the runner itself.

Enumerator
INVALID_OPTIONS 

Runner options are invalid, or a native run was requested with an injected clock.

ALREADY_RUN 

This application has already entered its single permitted run.

NO_MEMORY 

Allocation failed at a runner exception boundary.

CALLBACK_FAILED 

A non-allocation exception escaped into a runner callback boundary.

OBSERVER_FAILED 

The optional measurement observer threw an exception.

NOT_STARTED 

A step was requested before an accepted start.

REENTRANT_OPERATION 

A lifecycle operation was requested from an active operation or callback.

BACKGROUND_FAILED 

Background startup/admission failed; ApplicationError::background retains the cause.

◆ ApplicationPhase

enum class portals::ApplicationPhase
strong

Application runner phase, also used to identify a failure boundary.

Enumerator
CREATE 

Validate options and construct the application and its core services.

OPEN 

Enter a run and initialize its transport and runner state.

INPUT 

Read, decode and enqueue terminal input or resize events.

DISPATCH 

Deliver queued work through the existing scheduler.

PREPARE 

Synchronize scene state and, when enabled, prepare views after preliminary layout.

RENDER 

Lay out and paint the final frame, then consume commands into an owning cell buffer.

SUBMIT 

Give the owning frame to FrameWriter for diff encoding; no transport write occurs here.

FLUSH 

Advance encoded output through ready operations or the native deadline driver.

STOP 

Request cancellation, stop the scheduler and invoke the scene's stop hook.

CLOSE 

Close the transport and attempt restoration of terminal state.

CONTROL_LATENCY 

Observer-only logical queue delay for the runner's input/resize channel, not a work phase.

◆ AsyncError

enum class portals::AsyncError
strong

Failures of the optional single-frame UI coroutine adapter.

Enumerator
INVALID_ARGUMENT 

Empty task, callback or immutable data owner, or invalid policy.

WRONG_THREAD 

The operation or coroutine frame belongs to another thread.

CLOSED 

Owner, node scope, scheduler or completion endpoint is closed.

CANCELLED 

Explicit cancellation or replacement stopped the invocation.

WOULD_BLOCK 

Active resume, invocation, registration or queue capacity rejects the operation.

NO_MEMORY 

Allocation failed inside an adapter or coroutine boundary.

CALLBACK_FAILED 

Provider or coroutine body threw an exception other than bad_alloc.

IDENTITY_EXHAUSTED 

Invocation identity cannot advance without reuse.

◆ BackgroundAdmission

enum class portals::BackgroundAdmission
strong

Whether the newest source intent was admitted or retained for a future capacity change.

Enumerator
STARTED 

No unadmitted intent remains; an accepted job may still be running.

RETAINED 

Exactly one latest unadmitted owning intent remains.

◆ BackgroundError

enum class portals::BackgroundError
strong

Executor admission and startup failures; domain errors stay in the result value.

Enumerator
INVALID_ARGUMENT 

Null job or zero worker/pending capacity.

UNAVAILABLE 

A hosted session requires a borrowed executor.

CLOSED 

Executor no longer accepts work.

WOULD_BLOCK 

Pending capacity is full; ownership has not transferred.

NO_MEMORY 

An executor allocation failed.

START_FAILED 

A worker thread could not be created.

WRONG_THREAD 

Worker storage was accessed outside this executor's run extent.

LIMIT_EXCEEDED 

A storage request cannot fit its configured aggregate budget.

CALLBACK_FAILED 

A worker storage callback threw an exception.

◆ ButtonChrome

enum class portals::ButtonChrome
strong

Button caption decoration; action routing and identity remain unchanged.

Enumerator
BRACKETS 

ASCII bracket contour spanning the allocated button width.

NONE 

Caption only, including a single-glyph action button.

◆ CellBufferError

enum class portals::CellBufferError
strong

Observable, owning buffer failure; no partial write or resize is returned.

Enumerator
INVALID_LIMITS 

Invalid caps, ID representation or allocation-size arithmetic.

INVALID_POLICY 

An unrecognized width policy value.

COLUMN_LIMIT 

Normalized columns exceed the cap.

ROW_LIMIT 

Normalized rows exceed the cap.

CELL_LIMIT 

Checked cell product exceeds the cap or representation.

OUT_OF_BOUNDS 

A position lies outside the buffer.

INVALID_GRAPHEME 

A grapheme index lies outside the validated text.

POLICY_MISMATCH 

The text's complete captured width policy differs from this buffer.

WIDE_AT_EDGE 

The whole wide glyph cannot fit at the right edge.

GLYPH_LIMIT 

The glyph record pool is full.

GLYPH_BYTE_LIMIT 

The glyph byte pool cannot hold the new complete glyph.

STYLE_LIMIT 

The style pool is full.

ALLOCATION_FAILURE 

Storage allocation failed; the original buffer remains unchanged.

◆ CellKind

enum class portals::CellKind
strong

A cell's role in a complete display grapheme.

Enumerator
BLANK 

Default-style ASCII space, occupying one cell.

LEAD 

First cell of a one- or two-cell grapheme, including a styled cleanup space.

CONTINUATION 

Second cell of the immediately preceding two-cell lead.

◆ ChartGlyphSet

enum class portals::ChartGlyphSet
strong

Candle brushes; Unicode falls back to ASCII when the width policy requires wide symbols.

Enumerator
ASCII 

Portable vertical bar and hash brushes.

BOX_DRAWING 

Thin wick, filled block body and horizontal doji, each exactly one cell.

◆ ChartMode

enum class portals::ChartMode
strong

Retained chart rendering mode.

Enumerator
LINE 

Join consecutive finite closes, leaving gaps disconnected.

CANDLES 

Draw high-low wick and open-close body in each occupied column.

◆ CheckCycle

enum class portals::CheckCycle
strong

User activation policy for an explicitly typed checkbox binding.

Enumerator
TWO_STATE 

Unchecked/checked toggle; mixed activates to checked.

THREE_STATE 

Unchecked, checked, mixed, then unchecked.

◆ CheckState

enum class portals::CheckState
strong

Explicit checkbox value; MIXED describes an aggregate or an opt-in user choice.

Enumerator
UNCHECKED 

No selection.

CHECKED 

Complete selection.

MIXED 

Partial selection, displayed independently of color.

◆ ClickSource

enum class portals::ClickSource
strong

Origin of an admitted activation, without inferred physical input.

Enumerator
PROGRAMMATIC 

Explicit semantic action, the default for caller-created ActionEvent.

KEYBOARD 

Keyboard input, including a key translated into a semantic action.

MOUSE 

Mouse input supplied by the existing router.

◆ ColorMode

enum class portals::ColorMode
strong

Color encoding selected explicitly by the terminal owner.

Enumerator
TRUE_COLOR 

RGB SGR 38;2/48;2, preserving the existing default.

ANSI16 

Nearest standard RGB palette entry encoded as SGR 30-37/90-97 and 40-47/100-107.

◆ DataContentPolicy

enum class portals::DataContentPolicy
strong

Explicit content policy; automatic range wrappers always keep their request-owning body live.

Enumerator
KEEP_BODY 

Keep the body visible and prepared in every phase.

REPLACE 

Explicit mode only: hide the independently owned body outside READY/REFRESHING.

◆ DataPhase

enum class portals::DataPhase
strong

Presentation facts; offline is explicit domain information, never inferred from an error string.

Enumerator
READY 

Successful nonempty content; the reserved status strip is blank.

LOADING 

Initial or viewport request is pending.

EMPTY 

Successful content has zero logical rows.

FAILED 

Domain failure; independent technical errors retain their typed cause.

OFFLINE 

Explicit provider connectivity state, never inferred by the control.

REFRESHING 

Pending work with provider-permitted last-good content still visible.

◆ DiagnosticError

enum class portals::DiagnosticError
strong

Configuration/export failure.

Enumerator
INVALID_ARGUMENT 

Invalid capacity or attempt to restart an exhausted recorder.

NO_MEMORY 

Ring allocation failed without replacing the old interval.

UNSUPPORTED_VERSION 

The export does not declare the supported schema.

◆ DiagnosticEvent

enum class portals::DiagnosticEvent
strong

Metadata stages; no stage contains application text or terminal bytes.

Enumerator
INPUT 

Decoded input observed at the application or router boundary.

QUEUE_ACCEPTED 

Publication admitted to the existing scheduler.

QUEUE_REJECTED 

Publication rejected before delivery.

QUEUE_DISPATCH 

Callback admitted on the UI executor.

QUEUE_REPLACED 

New publication links to one displaced publication.

QUEUE_CANCELLED 

Queued publication will not be delivered.

TARGET 

Actual target selection or eligibility result.

FOCUS 

Focus selection or change.

ACTION 

Semantic action resolution or unhandled result.

HANDLER_STARTED 

User event callback admitted.

HANDLER_RETURNED 

Callback returned or failed; model effects are separate evidence.

PROPERTY 

Observed equality or committed property change.

INVALIDATION 

Tree work decision.

FRAME_REQUESTED 

A cause linked to a coalesced frame.

FRAME_NOT_REQUESTED 

No new frame was requested in this scope.

FRAME_SUBMITTED 

Actual frame encoded and accepted by FrameWriter.

OUTPUT 

Diff or transport result, never proof of physical display.

COMPLETED 

Synchronous action/dispatch returned.

QUEUE_RETURNED 

Scheduler callback returned or failed; application effects remain separate evidence.

◆ DiagnosticInput

enum class portals::DiagnosticInput
strong

Input category only; scalar, clipboard, modifiers and coordinates are omitted.

Enumerator
NONE 

No additional detail is available.

KEY 

Key category without scalar or modifiers.

TEXT 

Text category without content.

PASTE 

Paste category without clipboard or payload.

MOUSE 

Mouse category without coordinates.

OTHER 

Another instrumented input category.

◆ DiagnosticReason

enum class portals::DiagnosticReason
strong

Enumerated evidence, never an exception message or inferred model value.

Enumerator
NONE 

No additional detail is available.

QUEUE_FULL 

Configured queue capacity rejected the publication.

REPLACED 

A later snapshot displaced this publication.

CANCELLED 

Scope, endpoint or scheduler closed before delivery.

NO_TARGET 

No destination was selected.

TARGET_DISABLED 

Explicit target is hidden or disabled.

STALE_TARGET 

Target identity is no longer live.

UNBOUND_ACTION 

No eligible handler was registered along the route.

UNHANDLED 

Registered handlers did not consume the event.

HANDLER_FAILED 

Handler boundary caught a failure; prior effects remain.

VALUE_UNCHANGED 

An observed Property comparison was equal.

VALUE_CHANGED 

An observed Property commit or tree work change occurred.

OUTCOME_UNKNOWN 

Return alone cannot establish application effects.

FRAME_NOT_REQUESTED 

No new frame was requested in this scope.

DIFF_EMPTY 

The actual encoded diff was empty.

OUTPUT_FAILED 

Encoding or output failed; no rollback is implied.

OUTPUT_ACCEPTED 

Transport accepted the complete consistent transaction.

OUTPUT_PENDING 

Transport retained an unfinished suffix.

◆ DiagnosticState

enum class portals::DiagnosticState
strong

Recording state, including a terminal identity exhaustion condition.

Enumerator
DISABLED 

Recording is stopped; retained evidence remains available.

ENABLED 

Ring admission is active.

IDENTITY_EXHAUSTED 

Recording permanently stopped before identifier reuse.

◆ DialogClosePlacement

enum class portals::DialogClosePlacement
strong

Which top-frame segment owns the close affordance.

Enumerator
START 

Immediately after the leading corner.

END 

Immediately before the trailing corner.

◆ DialogDismissReason

enum class portals::DialogDismissReason
strong

Generic dismissal cause, independent of application results.

Enumerator
PROGRAMMATIC 

Explicit dismissal by application code.

CANCEL 

Cancellation through the managed input policy.

◆ DialogMode

enum class portals::DialogMode
strong

Input policy applied by the managed dialog owner.

Enumerator
MODAL 

Confine input to the active modal layer.

NON_MODAL 

Let input outside the panel reach the scene.

◆ DialogPlacement

enum class portals::DialogPlacement
strong

Preferred panel position within the owning host.

Enumerator
CENTER 

Center in the usable viewport, rounding down.

BELOW_START 

Prefer below the body anchor, aligned to its leading edge.

ABOVE_START 

Prefer above the body anchor, aligned to its leading edge.

◆ DiffError

enum class portals::DiffError
strong

Bounded encoding failure; input buffers are unchanged.

Enumerator
OUTPUT_LIMIT 

The complete transaction cannot fit the configured byte cap.

ALLOCATION_FAILURE 

Output allocation failed.

◆ DispatchStatus

enum class portals::DispatchStatus
strong

Distinguish a miss/ineligible target from an eligible unhandled event.

Enumerator
NO_TARGET 

No eligible destination was selected.

UNHANDLED 

An eligible destination existed but no handler consumed the event.

HANDLED 

A handler or built-in focus traversal consumed the event.

◆ DocumentDecodePolicy

enum class portals::DocumentDecodePolicy
strong

Handling of malformed input; ESCAPE is reserved and unsupported.

Enumerator
REPLACE 

Emit a tagged replacement scalar for each malformed subpart.

STRICT_MODE 

Fail transactionally on malformed input.

ESCAPE 

Reserved; currently unsupported.

◆ DocumentDecoderLocalStatus

Result of proving a decoded-scalar boundary from a fixed local original-byte window.

Enumerator
READY 

The containing valid/replacement scalar begins at restartByteOffset; checkpoint is present.

AT_END 

Confirmed EOF has no containing scalar; restartByteOffset is EOF and no checkpoint is supplied.

NEED_PREFIX 

More original bytes before the supplied local window are required to prove the boundary.

NEED_SUFFIX 

More original bytes or confirmed EOF are required to resolve the selected scalar.

MALFORMED 

STRICT_MODE rejects the selected original-byte subpart; no checkpoint is supplied.

INVALID_RANGE 

Window exceeds the fixed size, overflows, contradicts BOM extent or excludes the requested anchor.

INVALID_ORIGIN 

Origin metadata is unresolved, unsupported or inconsistent with a real decoder boundary.

◆ DocumentDecodeStatus

enum class portals::DocumentDecodeStatus
strong

Completion, backpressure, or typed failure of a feed call.

Enumerator
NEED_INPUT 

More input is needed to continue.

OUTPUT_FULL 

More output capacity is needed to continue.

WORK_LIMIT 

The input admission budget was reached.

DONE 

Confirmed end of stream was processed.

MALFORMED 

Strict decoding encountered malformed input.

ENCODING_UNRESOLVED 

Neither explicit choice, BOM nor hint selected an encoding.

INVALID_OFFSET 

Input is noncontiguous, overflows, or follows completion.

UNSUPPORTED_POLICY 

Escape policy or zero work limit is unsupported.

◆ DocumentEncoding

enum class portals::DocumentEncoding
strong

Resolved byte encoding, or an unresolved selection.

Enumerator
UNRESOLVED 

No encoding has been selected.

UTF8 

UTF-8.

UTF16LE 

UTF-16, little-endian.

UTF16BE 

UTF-16, big-endian.

UTF32LE 

UTF-32, little-endian.

UTF32BE 

UTF-32, big-endian.

WINDOWS1251 

WHATWG Windows-1251.

WINDOWS1252 

WHATWG Windows-1252.

◆ DocumentHighlightStatus

Streaming progress, caller backpressure or an explicit lexical limitation.

Enumerator
NEED_INPUT 

Supplied scalars are consumed; more input or EOF is needed.

OUTPUT_FULL 

Supply a nonempty output span and resume unconsumed input.

WORK_LIMIT 

Resume after this call exhausted its bounded work budget.

DONE 

EOF finalized and all staged runs delivered.

INVALID_CONFIGURATION 

Invalid language, zero work limit or out-of-range limits.

INVALID_INPUT 

Non-scalar value, zero length, discontinuity or uint64 overflow.

UNSUPPORTED_PROFILE 

Construct requires a different lexical profile.

RESOURCE_LIMIT 

A delimiter, nesting or fixed mode-item capacity is exceeded.

◆ DocumentLanguage

enum class portals::DocumentLanguage
strong

Explicit lexical profiles; unknown names resolve to PLAIN.

Enumerator
PLAIN 

Source bytes have the normal role.

POSTGRESQL_LEXICAL 

Bounded PostgreSQL source profile, not a semantic parser.

MYSQL_LEXICAL 

Bounded MySQL dump/stored-program source profile.

MARKDOWN_SOURCE 

Bounded raw Markdown source profile, not a renderer.

◆ DocumentLinePolicy

enum class portals::DocumentLinePolicy
strong

Policy qualifying every index checkpoint; UTF16 requires a decoder adapter.

Enumerator
RAW_BYTES 

CR/LF/CRLF byte separators without decoding.

UTF8 

UTF8 byte separators; offsets remain raw byte positions.

UTF16_LE 

Unsupported by this bytewise index.

UTF16_BE 

Unsupported by this bytewise index.

◆ DocumentLocationState

enum class portals::DocumentLocationState
strong

Precision of a requested line start.

Enumerator
EXACT 

Requested line start proven.

PENDING 

More bounded worker scans required.

UNKNOWN 

EOF proved that the line does not exist.

◆ DocumentMySqlMode

enum class portals::DocumentMySqlMode
strong

MySQL lexical string modes supported initially and by source SET SQL_MODE.

Enumerator
NORMAL 

Backslash escapes inside single/double quoted strings.

NO_BACKSLASH_ESCAPES 

Literal backslashes; doubled delimiters still quote themselves.

◆ DocumentSearchDirection

Literal navigation order; wrapping belongs to the caller.

Enumerator
NEXT 

First whole-grapheme match starting at or after the requested anchor.

PREVIOUS 

Last whole-grapheme match starting strictly before the requested anchor.

◆ DocumentSearchState

enum class portals::DocumentSearchState
strong

One bounded advance; PENDING is ordinary continuation, not source backpressure.

Enumerator
PENDING 

The work quantum finished; call advance again for this same request.

FOUND 

A selected owning match is available.

END 

This request has no further eligible match; no implicit wrap occurs.

◆ DocumentSyntaxAccuracy

Accuracy of the syntax roles actually displayed, independently of recovery errors.

Enumerator
NONE 

Plain source text without syntax-role projection.

PREVIEW 

Best-effort local-fragment roles; the enclosing lexical context is not proven.

EXACT 

Source-qualified roles within the selected lexical profile.

◆ DocumentSyntaxPolicy

enum class portals::DocumentSyntaxPolicy
strong

Recovery policy; the language still selects the lexical rules.

Enumerator
AUTO 

Preview immediately and refine within the automatic source-admission budget.

PREVIEW 

Reuse known exact context or show bounded local-fragment colors without long recovery.

EXACT 

Allow cancellable recovery from a proven checkpoint or the real source origin.

◆ DocumentSyntaxState

enum class portals::DocumentSyntaxState
strong

Syntax projection state; text remains readable while context is prepared.

Enumerator
DISABLED 

Plain text selected; no lexical worker or cache is needed.

PENDING 

Some displayed source clusters have no proven lexical role yet.

READY 

All displayed clusters have source-qualified lexical roles.

UNSUPPORTED_PROFILE 

A construct exceeds the selected lexical profile; plain text remains available.

RESOURCE_LIMIT 

The fixed lexical policy was exhausted; plain text remains available.

UNAVAILABLE 

Optional syntax work failed; the plain frame remains readable.

REPLAY_UNAVAILABLE 

The source cannot restore the required earlier lexical context.

PREVIEW 

A readable provisional projection remains after bounded refinement stops.

◆ DocumentViewMode

enum class portals::DocumentViewMode
strong

Projection of the same original source bytes.

Enumerator
TEXT 

Decode and lay out text using retained text settings.

HEX 

Project raw fixed-width byte rows without decoding.

◆ EditingFinishedOutcome

Outcome of the existing publication policy at an editing boundary.

Enumerator
APPLIED 

Property::set changed the committed model value.

UNCHANGED 

An equal set succeeded, or a clean editor lost focus without attempting publication.

DEFERRED 

Focus loss retained a dirty draft without attempting publication in this mode.

VALIDATION_REJECTED 

The existing validator rejected the retained draft.

CONFLICT 

The model revision changed before publication.

FAILED 

Technical failure; inspect the original result's error.

PENDING 

This boundary retained an exact asynchronous publication intent.

◆ EditingFinishedReason

enum class portals::EditingFinishedReason
strong

Boundary at which the user finishes an editing operation.

Enumerator
ENTER 

Enter or the equivalent Action::ACTIVATE command.

FOCUS_LOST 

Synchronous loss of this editor's focus.

◆ EditMode

enum class portals::EditMode
strong

When an accepted editing candidate is validated and published to its model.

Enumerator
IMMEDIATE 

Publish each semantic-valid text change; invalid intermediate text remains visible.

ON_COMPLETION 

Keep a draft until Enter, programmatic activation or focus loss.

EXPLICIT 

Keep a draft until Enter or programmatic activation; focus loss preserves it.

◆ EditStatus

enum class portals::EditStatus
strong

Submission and acceptance are separate protocol states.

Enumerator
CLEAN 

Current accepted value, without a draft.

DIRTY 

Owning unpublished input.

PENDING 

Admitted work; no backend acceptance has been reported.

ACCEPTED 

Endpoint applied this exact qualified write.

INVALID 

Validation rejected the retained draft.

CONFLICT 

Expected target version is no longer current.

TARGET_MISSING 

Original record is absent; retained draft is orphaned.

READ_ONLY 

Source permits reads but does not expose writes.

CLOSED 

Original endpoint/session no longer admits work.

REJECTED 

Backend rejected the request without applying it.

◆ EmojiWidth

enum class portals::EmojiWidth
strong

Terminal policy for recognized emoji clusters, including single emoji.

Enumerator
ONE 

Use one cell.

TWO 

Use two cells.

◆ EventReply

enum class portals::EventReply
strong

Explicit bubbling decision; ignored continues toward the original root.

Enumerator
IGNORED 

Continue bubbling along the original ancestry.

HANDLED 

Stop bubbling; this registration consumed the event.

◆ FieldStatus

enum class portals::FieldStatus
strong

Presentation of the most recent explicit or editor-publication validation.

Enumerator
UNCHECKED 

No validation has been requested; required is still shown in the label.

VALID 

The checked candidate satisfied all configured synchronous rules.

INVALID 

The checked candidate was rejected; the editor retains its draft.

PENDING 

Checking an asynchronous intent, or explicit presentation; editing remains enabled.

TECHNICAL_ERROR 

A technical validation failure; distinct from invalid business data.

◆ FileLogError

enum class portals::FileLogError
strong

File-specific failures; diagnostics retain native codes without allocating messages.

Enumerator
INVALID_ARGUMENT 

Invalid option, offset, pattern or buffer size.

OPEN_FAILED 

Opening the owned path failed.

READ_FAILED 

Native positioned read failed.

METADATA_FAILED 

File identity or byte extent could not be read.

RECORD_TOO_LONG 

A complete record cannot be found within maxRecordBytes.

INVALID_UTF8 

A complete record contains invalid UTF-8.

FILE_CHANGED 

Truncation or rotation invalidated the requested generation.

CANCELLED 

Cooperative cancellation was requested.

NO_MEMORY 

A bounded allocation failed.

◆ FileLogOperation

enum class portals::FileLogOperation
strong

Operation that produced a fixed native diagnostic.

Enumerator
CREATE 

Validate options or allocate the path descriptor.

OPEN 

Open the source path for reading.

METADATA 

Obtain file identity and byte extent.

READ 

Read a bounded range or record.

SEARCH 

Search a bounded byte chunk.

◆ FindDirection

enum class portals::FindDirection
strong

Direction through the stored bounded prefix; both directions wrap.

Enumerator
NEXT 

Advance, wrapping the last stored match to the first.

PREVIOUS 

Retreat, wrapping the first stored match to the last.

◆ FindSearchError

enum class portals::FindSearchError
strong

Model search failures, distinct from editor admission and scheduler/tree failures.

Enumerator
INVALID_ARGUMENT 

Invalid options, source shape, or row identity.

LIMIT_EXCEEDED 

Source rows, projected bytes, row bytes or query bytes exceeded their bound.

INVALID_TEXT 

Projected row is not admitted UTF-8 under the scene text policy.

NOT_READY 

Immutable provider range is pending or failed; no I/O was started.

CANCELLED 

Cooperative cancellation was observed.

NO_MEMORY 

Worker could not allocate bounded preparation storage.

CALLBACK_FAILED 

Provider read or worker projection threw.

◆ FrameError

enum class portals::FrameError
strong

Submission failure; the supplied frame remains owned by the caller.

Enumerator
PENDING 

Complete or abandon the owning session before submitting another frame.

POISONED 

Unknown output state; close/reestablish terminal before creating a new writer.

FRAME_LIMIT 

Frame allocation accounting exceeds the configured cap.

OUTPUT_LIMIT 

Encoded transaction exceeds the configured cap.

ALLOCATION_FAILURE 

Encoding allocation failed.

◆ FramePattern

enum class portals::FramePattern
strong

Built-in frame line patterns, independent of terminal width policy.

Enumerator
SINGLE 

Single lines and square corners.

PLAIN 

Alias for single lines.

ROUNDED 

Single lines and rounded corners.

DOUBLE 

Double lines and square corners.

HEAVY 

Heavy lines and square corners.

ASCII 

Portable plus, minus and vertical-bar glyphs.

◆ FrameTitleAlignment

enum class portals::FrameTitleAlignment
strong

Alignment of the maximal whole-grapheme title prefix fitting the top edge.

Enumerator
START 

Place the visible prefix after the leading corner.

CENTER 

Center the visible prefix between present corners.

END 

Place the visible prefix before the trailing corner.

◆ GeometryError

enum class portals::GeometryError
strong

Failure of a checked cell-coordinate operation.

Enumerator
COORDINATE_OVERFLOW 

An origin or exclusive end would be outside the int32_t range.

◆ GlyphFallback

enum class portals::GlyphFallback : std::uint8_t
strong

Portable replacement when the selected map fails one-cell admission.

Enumerator
UNICODE_GLYPHS 

Unicode replacement, with ASCII when Unicode is not one cell.

ASCII 

ASCII replacement; also selects ASCII vertical caps for NF maps.

◆ GlyphProfile

enum class portals::GlyphProfile : std::uint8_t
strong

Explicit glyph map, independent of colors and geometry. NF maps use Nerd Fonts 3 Powerline codepoints. Selecting one asserts host/font support; the library neither detects missing font glyphs nor installs fonts.

Enumerator
DEFAULT 

Preserve the control's existing glyph sources.

UNICODE_GLYPHS 

Portable Unicode rounded/inset forms.

ASCII 

Portable ASCII forms.

NF_ROUNDED 

Powerline rounded horizontal caps, Unicode vertical inset caps.

NF_CHEVRON 

Powerline chevron horizontal caps, Unicode vertical inset caps.

NF_SLASH 

Powerline slash horizontal caps, Unicode vertical inset caps.

NF_BACKSLASH 

Powerline backslash horizontal caps, Unicode vertical inset caps.

◆ GridFlow

enum class portals::GridFlow
strong

Direction in which declarative placement searches for the next free origin.

Enumerator
ROW_MAJOR 

Advance through columns before moving to the next body row.

COLUMN_MAJOR 

Advance through body rows before moving to the next column.

◆ GridPlacementMode

enum class portals::GridPlacementMode
strong

Construction-time placement mode; explicit grids retain their overlap semantics.

Enumerator
EXPLICIT 

Preserve low-level overlapping cells in sibling paint/input order.

DECLARATIVE 

Reject overlapping cells within each independent region.

◆ GridRegion

enum class portals::GridRegion
strong

Independent local row coordinate space sharing the grid's columns.

Enumerator
BODY 

Ordinary content rows, optionally below a header.

HEADER 

Independent heading rows sharing the horizontal tracks.

◆ GzipError

enum class portals::GzipError
strong

Gzip cause carried in DocumentError::native; implicitly convertible to std::error_code.

Enumerator
INVALID_HEADER 

Input does not start with a supported gzip header.

CORRUPT_DATA 

Invalid compressed data.

CHECKSUM_MISMATCH 

A member or header checksum did not match.

SIZE_MISMATCH 

A member's modulo-2^32 size check did not match.

TRUNCATED 

Physical EOF arrived before the complete member trailer.

TRAILING_DATA 

Bytes after a complete member are not another gzip member.

HEADER_LIMIT 

The configured compressed header limit was exceeded.

INFLATE_LIMIT 

The configured aggregate live inflater allocation limit was exceeded.

◆ HexByteClass

enum class portals::HexByteClass
strong

Semantic classification for a source byte.

Enumerator
ZERO 

Zero byte.

SPACE 

ASCII space.

PRINTABLE 

ASCII graphic character.

CONTROL 

Nonzero ASCII control byte, including DEL.

HIGH_BYTE 

Byte at or above 0x80.

◆ HexError

enum class portals::HexError
strong

Failure before any output is written.

Enumerator
INVALID_OPTIONS 

A row or group size is outside the supported range.

OFFSET_OVERFLOW 

The offset after consumed input cannot fit in uint64_t.

TEXT_TOO_SMALL 

The text output cannot hold a complete row.

CELLS_TOO_SMALL 

The cell output cannot hold all consumed bytes.

◆ InputCoordinateMode

enum class portals::InputCoordinateMode
strong

SGR coordinate interpretation selected only at a proven stream boundary.

Enumerator
CELL 

Traditional 1006 character coordinates.

PIXEL 

1016 pixel coordinates; usable dimensions are required.

◆ InputError

enum class portals::InputError
strong

Construction and call errors, separate from events caused by input bytes.

Enumerator
INVALID_OPTIONS 

A construction option is outside the supported storage, work or timeout bounds.

BACKWARD_TIME 

The supplied timestamp precedes the last accepted next() or finish() timestamp.

CLOSED 

next() was called after finish() began closing the stream; reset starts a new stream.

FAILED 

The decoder previously failed and must be reset before decoding can continue.

OFFSET_OVERFLOW 

The maximum prefix this call could consume would overflow the session byte offset.

INVALID_WINDOW 

Reply interval is empty/reversed, or the decoder is not at an open, idle boundary.

◆ InputIssueKind

enum class portals::InputIssueKind
strong

Recoverable decode issues; timeout may also leave the decoder failed.

Enumerator
INVALID_UTF8 

Invalid UTF-8 byte sequence or a decoded value that is not a Unicode scalar.

TRUNCATED 

Incomplete input at stream end, or an unfinished UTF-8 scalar at its deadline.

UNKNOWN_SEQUENCE 

Unsupported control sequence, including disabled features or unexpected replies.

INVALID_SEQUENCE 

Malformed control syntax or invalid SGR mouse parameters.

SEQUENCE_LIMIT 

CSI or SS3 sequence exceeds InputOptions::max_sequence_bytes.

PARAMETER_LIMIT 

Parameter count or decimal field length exceeds max_parameters or max_digits.

NUMERIC_OVERFLOW 

A decimal parameter cannot be represented as a uint32_t value.

PASTE_LIMIT 

Paste payload exceeds max_paste_bytes; no partial paste event is delivered.

TIMEOUT 

Control sequence, control string or paste reached its deadline; reset is required.

◆ InputKey

enum class portals::InputKey
strong

Semantic key identities; character uses KeyEvent::scalar.

Enumerator
CHARACTER 

Character key identified by KeyEvent::scalar; VT uses this for control combinations.

ESCAPE 

Escape key, including a standalone ESC resolved by timeout or end of input.

ENTER 

Enter key; the VT profile maps carriage return to this identity.

TAB 

Tab key; modifiers distinguish Shift+Tab.

BACKSPACE 

Backspace key; the VT profile accepts both BS and DEL bytes.

UP 

Up arrow key.

DOWN 

Down arrow key.

RIGHT 

Right arrow key.

LEFT 

Left arrow key.

HOME 

Home navigation key.

END 

End navigation key.

INSERT 

Insert key.

DELETE_KEY 

Delete key, distinct from the DEL byte decoded as Backspace.

PAGE_UP 

Page Up navigation key.

PAGE_DOWN 

Page Down navigation key.

F1 

Function key F1.

F2 

Function key F2.

F3 

Function key F3.

F4 

Function key F4.

F5 

Function key F5.

F6 

Function key F6.

F7 

Function key F7.

F8 

Function key F8.

F9 

Function key F9.

F10 

Function key F10.

F11 

Function key F11.

F12 

Function key F12.

◆ InputProbeKind

enum class portals::InputProbeKind
strong

Supported syntactic reply kinds, not proof of terminal identity.

Enumerator
PRIMARY_DEVICE_ATTRIBUTES 

Primary device attributes reply; values contain its numeric parameters.

CURSOR_POSITION 

Cursor position reply; values contain the one-based row followed by column.

◆ InputStatus

enum class portals::InputStatus
strong

Why a pull stopped; deliver its event or report before calling again.

Enumerator
EVENT 

One event is ready; deliver it before resubmitting the unconsumed suffix.

NEED_INPUT 

All supplied bytes were consumed without a result; more input, time or finish() is needed.

WORK_LIMIT 

Per-call byte budget was reached without a result; resubmit the unconsumed suffix.

FINISHED 

End-of-stream flushing is complete; this step may still contain the final event.

FAILED 

This step reports a fatal timeout event; reset is required before decoding can continue.

PROTOCOL 

One protocol report is ready; handle it before resubmitting the unconsumed suffix.

◆ Invalidation

enum class portals::Invalidation
strong

Accumulated work; layout always includes painting.

Enumerator
NONE 

No new work requested.

PAINT 

Painting is required; arranged geometry remains usable.

LAYOUT 

Layout and painting are required; old arranged geometry becomes invalid.

◆ KeyAction

enum class portals::KeyAction
strong

Native adapters may report repeat/release; VT emits press only.

Enumerator
PRESS 

Key press; the only action emitted by the VT decoder.

REPEAT 

Repeated key press reported by a native adapter.

RELEASE 

Key release reported by a native adapter.

◆ KeyConflictKind

enum class portals::KeyConflictKind
strong

Conditional alternative overlap.

Enumerator
EXACT 

Both alternatives end at their shared strokes.

TERMINAL_PREFIX 

One alternative ends while the other continues.

SHARED_PREFIX 

Alternatives compete initially and diverge later.

◆ KeyEligibility

enum class portals::KeyEligibility
strong

Eligibility observed for one immutable snapshot, not a universal conflict winner.

Enumerator
ELIGIBLE 

Eligible for matching; conflict winner still depends on the event.

DISABLED 

Explicitly disabled, retained in full help.

HIDDEN 

Explicitly hidden from routing and projections.

UNBOUND 

Identity retained without any key alternatives.

OWNER_INELIGIBLE 

Live owner or ancestor is hidden or disabled.

OWNER_RETIRED 

Original generational owner no longer exists.

SCOPE_INACTIVE 

Original scope is disconnected, ineligible or outside current focus.

TERMINAL_UNSUPPORTED 

Every annotated phase is explicitly unsupported.

◆ KeySupport

enum class portals::KeySupport
strong

Explicit terminal phase knowledge; UNKNOWN does not suppress routing.

Enumerator
UNKNOWN 

No explicit support claim; annotated routing remains enabled.

SUPPORTED 

The application declares this native phase supported.

UNSUPPORTED 

The application explicitly excludes this annotated phase.

◆ LayoutAlign

enum class portals::LayoutAlign
strong

Alignment; center assigns floor(free/2) before the child/group.

Enumerator
START 

Place at the leading edge of the available space.

CENTER 

Center within spare space, rounding the leading offset down to whole cells.

END 

Place at the trailing edge of the available space.

STRETCH 

Fill available cross-axis space within size bounds; acts as START on the linear main axis.

◆ LayoutOverflow

enum class portals::LayoutOverflow
strong

Minimum/fixed sizes survive shortage and are clipped by ancestor geometry.

Enumerator
CLIP 

Preserve hard minima and fixed extents; clip content that does not fit the viewport.

◆ LayoutSnapshotProfile

enum class portals::LayoutSnapshotProfile
strong

Explicit capture cost profile; dimension-only scenes keep their original path.

Enumerator
DIMENSIONS 

Original size records, without optional geometry storage.

GEOMETRY 

Copy geometry, visibility and pure descendant clips for scroll preparation.

◆ LineEditDisplayMode

enum class portals::LineEditDisplayMode
strong

Immutable presentation and outbound clipboard policy; plaintext model/history remain application-owned.

Enumerator
NORMAL 

Render the draft using its actual grapheme widths; copying and cutting retain normal behavior.

PASSWORD 

Render one ASCII '*' per grapheme, revealing its count; suppress outbound copy/cut.

NO_ECHO 

Render no value or selection, with a fixed-origin caret and intrinsic width one; suppress copy/cut.

◆ LineEditStatus

enum class portals::LineEditStatus
strong

Observable editing or service outcome; rejection preserves the draft.

Enumerator
EDITED 

A local draft or selection changed.

COMMITTED 

Confirmation completed Property::set; inspect its exact receipt.

CANCELLED 

Escape adopted the latest model snapshot.

COPIED 

Selected bytes were accepted by the clipboard service.

CONFLICT 

The model revision changed since this draft began.

INVALID_TEXT 

Invalid UTF-8 or a line separator was rejected in full.

LIMIT_EXCEEDED 

Input, cluster, grapheme or cell limit rejected the whole edit.

VALIDATION_FAILED 

The commit validator rejected the complete draft.

CLIPBOARD_FAILED 

The injected service was absent or rejected the operation.

FAILED 

A tree, allocation or callback failure; inspect error.

PENDING 

The accepted draft awaits asynchronous semantic validation; no model write occurred.

◆ LineEditTrigger

enum class portals::LineEditTrigger
strong

Entry path that produced an editing or confirmation outcome.

Enumerator
INPUT 

Routed input or programmatic activation.

FLUENT 

Accepted fluent text mutation.

BLUR 

Confirmation on synchronous focus loss.

ASYNC_VALIDATION 

Final result of an earlier asynchronous publication intent; no synthetic input event.

◆ LogRestoreReason

enum class portals::LogRestoreReason
strong

Recoverable restore diagnostics; no outcome implicitly enables following.

Enumerator
NONE 

Exact restoration or no restore was requested.

UNSUPPORTED 

The provider has no bookmark capability.

RESOURCE_MISMATCH 

Resource, lineage or native identity is incompatible.

HISTORY_UNAVAILABLE 

Supported historical data cannot be recovered.

ANCHOR_MISMATCH 

Bounded anchor validation failed.

DELETED_SEGMENT 

Provider proved deletion and selected a surviving neighbor.

CHECKPOINT_CAPACITY 

Metadata admission failed before replacement.

◆ ManagedPhase

enum class portals::ManagedPhase
strong

Boundary at which a managed operation failed.

Enumerator
MOUNT 

Create the scene root or attach and register a managed widget.

STATE 

Create and retain a scene-owned property.

BIND 

Register a managed callback, binding or presentation adapter.

STYLE 

Register or apply styles, including a theme change.

PREPARE 

Synchronize managed presentation, focus and pending updates before a frame.

INPUT 

Dispatch input or deliver a managed control/property callback.

RUN 

Enter the application runner or propagate a failure from it.

CLEANUP 

Remove a managed subtree or retire the scene and its registrations.

TEXT 

Read or mutate a fluent caption/editor draft through a checked observing reference.

LAYOUT 

Read final arranged geometry or deliver a deferred owning layout observation.

◆ MessageChoice

enum class portals::MessageChoice
strong

A requested application action; SAVE does not confirm that data was written.

Enumerator
ACKNOWLEDGE 

Acknowledge an informational message.

CONFIRM 

Proceed with the described operation.

SAVE 

Request saving before proceeding.

DISCARD 

Proceed without saving.

CANCEL 

User/programmatic cancellation, never an owner or task failure.

YES 

Affirm the question.

NO 

Decline the question.

◆ ModelRestorePolicy

enum class portals::ModelRestorePolicy
strong

Remember a resource position by default; RESET explicitly selects its initial policy.

Enumerator
REMEMBER 

Restore this navigation session's saved resource position.

RESET 

Forget the target checkpoint and use its initial position/selection.

◆ MouseAction

enum class portals::MouseAction
strong

Motion and wheel are separate from button transitions.

Enumerator
PRESS 

Mouse button press.

RELEASE 

Mouse button release.

MOVE 

Pointer motion, with a reported button or MouseButton::NO_BUTTON.

SCROLL 

Wheel movement in the direction given by MouseInputEvent::button.

◆ MouseButton

enum class portals::MouseButton
strong

SGR button identity; NO_BUTTON is used for unbuttoned motion.

Enumerator
LEFT 

Left mouse button.

MIDDLE 

Middle mouse button.

RIGHT 

Right mouse button.

NO_BUTTON 

Motion reported without a pressed button.

WHEEL_UP 

Vertical wheel movement upward.

WHEEL_DOWN 

Vertical wheel movement downward.

WHEEL_LEFT 

Horizontal wheel movement leftward.

WHEEL_RIGHT 

Horizontal wheel movement rightward.

◆ NativeInputOrder

enum class portals::NativeInputOrder
strong

Host declaration; a successful DECRPM alone cannot establish this guarantee.

Enumerator
UNCONFIRMED 

Decline precision without changing ordinary startup.

FIFO 

Complete input packets precede replies to subsequently processed queries, without interleaving.

◆ NativePointerPolicy

enum class portals::NativePointerPolicy
strong

Optional native pointer enhancement; ordinary cell input remains the fallback.

Enumerator
AUTO 

Negotiate precision only when the host ordering contract is declared and optional probes succeed.

OFF 

Keep ordinary native cell reporting.

◆ NativeScreenMode

enum class portals::NativeScreenMode
strong

Screen ownership for the native application transport.

Enumerator
MAIN_SCREEN 

Paint the caller's screen directly; its contents and cursor are not restored.

ALTERNATE_SCREEN 

Own an alternate screen and return to the caller's main screen on close.

◆ NavigationCheckpointError

Persistence failures are separate from navigation resolution outcomes.

Enumerator
INVALID_ARGUMENT 

Invalid options, role or input bookmark.

CORRUPT_INPUT 

Malformed envelope, invalid checksum or inconsistent provider result.

TOO_LARGE 

Configured envelope, entry, identity or count limit exceeded.

UNSUPPORTED_VERSION 

Unknown envelope schema.

UNSUPPORTED_CODEC_VERSION 

Matching provider codec name uses an unsupported schema version.

UNSUPPORTED_CODEC 

Saved codec identifier does not match the supplied provider.

WRONG_RESOURCE 

Portable resource qualification does not match the supplied provider.

UNSUPPORTED 

Provider or storage does not implement persistence for this location.

CANCELLED 

Cooperative cancellation before publishing a result.

CLOSED 

Provider or storage has closed its owning scope.

STORAGE_FAILURE 

Storage read/write failed; existing memory values remain unchanged.

NO_MEMORY 

Allocation or representational capacity failed.

PROVIDER_FAILURE 

A provider/storage callback threw an unexpected exception.

◆ NavigationCheckpointRole

Purpose of a saved location; EDIT_ANCHOR never conveys write authority.

Enumerator
CURRENT 

Current record or text caret location.

READING_ANCHOR 

Reading location, independently of current selection.

SELECTION 

One selected location; multiple entries preserve their order.

EDIT_ANCHOR 

Destination location only; capabilities and versions must be checked again.

◆ NavigationProjection

enum class portals::NavigationProjection
strong

Explicit projection-domain agreement; absence from a projection never proves deletion.

Enumerator
SAME_MODEL 

Binding must use the context's original managed model.

PRESERVES_ROW_IDS 

Caller guarantees identical complete RowIds in the original source domain.

◆ NumericError

enum class portals::NumericError
strong

Allocation-free numeric validation cause, preserved by managed diagnostics.

Enumerator
NOT_FINITE 

A value, bound or step is NaN or infinite.

INVALID_RANGE 

Bounds are unordered or their positive span is not finite.

INVALID_STEP 

The user increment is not positive.

UNREPRESENTABLE_STEP 

A sub-range increment cannot advance at one of the bounds.

OUT_OF_RANGE 

An explicit value is outside the inclusive bounds.

INITIAL_CONFLICT 

An external model was combined with an explicit numeric override.

INVALID_TEXT 

Numeric editor draft has incomplete or invalid decimal syntax.

◆ PasswordDisplayMode

enum class portals::PasswordDisplayMode
strong

Constant-glyph presentation of protected editor values.

Enumerator
PASSWORD 

One ASCII '*' per grapheme; exposes the grapheme count.

NO_ECHO 

No value/selection glyphs, intrinsic width one and fixed-origin caret.

◆ PasswordInputError

enum class portals::PasswordInputError
strong

Protected editor input rules beyond UTF-8 validity.

Enumerator
LINE_SEPARATOR 

Valid Unicode contains CR, LF, LINE SEPARATOR or PARAGRAPH SEPARATOR.

◆ PasswordPastePolicy

enum class portals::PasswordPastePolicy
strong

Explicit admission of plaintext supplied by the system clipboard/input decoder.

Enumerator
DISABLED 

Consume paste without reading the service or inspecting supplied bytes.

ENABLED 

Accept bounded external plaintext; wipe the owned service payload after copying.

◆ PasswordStatus

enum class portals::PasswordStatus
strong

Outcome of a protected edit or publication boundary.

Enumerator
EDITED 

Accepted local protected draft, selection change or no-op.

COMMITTED 

Successful Property::set; inspect the exact protected receipt.

CANCELLED 

Checked adoption of the latest model identity.

CONFLICT 

External model revision changed since this draft began.

INVALID_TEXT 

Invalid UTF-8 or a line separator; no partial input accepted.

LIMIT_EXCEEDED 

Whole-value Unicode or protected byte bound rejected the edit.

VALIDATION_FAILED 

Semantic predicate rejected the retained protected draft.

CLIPBOARD_FAILED 

Opted-in service absent or rejected the read.

FAILED 

Original technical/secure cause retained in failure.

◆ PositionAffinity

enum class portals::PositionAffinity
strong

Preferred surviving side when a position is deleted or text is inserted beside a mark.

Enumerator
FORWARD 

Prefer the following item; an end boundary falls back to the preceding item.

BACKWARD 

Prefer the preceding item; an entry boundary falls back to the following item.

◆ PositionChangeKind

enum class portals::PositionChangeKind
strong

Operation in a provider-declared finite ordering change map.

Enumerator
SPLICE 

Remove a contiguous range, then insert rows at that boundary.

MOVE 

Move a range to an index in the sequence after removing that range.

◆ PositionKind

enum class portals::PositionKind
strong

Position interpretation; a row, a gap, and a text mark are not interchangeable.

Enumerator
ITEM 

Full RowId with a version-qualified ordinal hint.

GAP 

Boundary between rows, including the entry and end gaps.

TEXT 

Provider-defined text mark; providers must preserve grapheme boundaries.

◆ PositionResolution

enum class portals::PositionResolution
strong

Successful protocol outcomes; absence of support differs from missing history.

Enumerator
EXACT 

The same item or a proven mapped gap/mark is present.

NEAREST 

The original item was removed; a declared surviving neighbor was selected.

EMPTY 

Compatible source is empty and has no current item.

PENDING 

Provider has not materialized the required bounded data yet.

UNSUPPORTED 

The provider does not implement the requested kind or identity capability.

INCOMPATIBLE 

Resource, lineage or change proof cannot identify this position safely.

UNAVAILABLE 

Supported position history or storage is no longer available.

◆ PrimitiveGlyphs

enum class portals::PrimitiveGlyphs
strong

One-cell decoration selection under the complete receiving WidthPolicy.

Enumerator
UNICODE 

Unicode lines/blocks, falling back to ASCII when a glyph is not one cell.

UNICODE_GLYPHS 

Macro-safe alias for Unicode decoration selection.

ASCII 

Portable one-cell ASCII decorations.

◆ ProgrammaticChange

enum class portals::ProgrammaticChange
strong

History policy of an explicit programmatic text change.

Enumerator
RECORD 

Record one separate reversible operation; equal text preserves Redo.

RESET_BASELINE 

Discard history after accepting this baseline, even when bytes are equal.

◆ PssErrorCode

enum class portals::PssErrorCode
strong

Structured PSS errors independent of compiler wording.

Enumerator
NONE 

Successful admission.

INPUT_LIMIT 

Input bytes exceed the selected budget.

RULE_LIMIT 

Source-order rule count exceeds the selected budget.

CLASS_LIMIT 

Compact class predicates exceed their budget.

DECLARATION_LIMIT 

Compact declaration occurrences exceed their budget.

TEXT_LIMIT 

Compact owning text exceeds its shared arena.

DOCUMENT_LIMIT 

Runtime owning payload exceeds its logical budget.

SOURCE_NAME_LIMIT 

Source identity exceeds its byte budget.

INVALID_UTF8 

Invalid UTF-8 sequence anywhere in strict input.

NUL_BYTE 

Embedded NUL in strict input or source identity.

EXPECTED_SELECTOR 

No v0 selector at the current position.

EXPECTED_IDENTIFIER 

Expected an ASCII name.

EXPECTED_PUNCTUATION 

Missing required punctuation.

UNTERMINATED_COMMENT 

Missing comment terminator.

DUPLICATE_ID 

More than one ID predicate in a selector.

DUPLICATE_STATE 

More than one presentation-state predicate.

UNKNOWN_STATE 

Unsupported presentation state.

UNKNOWN_PROPERTY 

Unsupported v0 declaration name.

INVALID_VALUE 

Value does not have the property's exact scalar syntax.

INVALID_WIDTH 

Negative, overflowing, or state-dependent minimum width.

ALLOCATION 

Runtime allocation or checked ownership transfer failed.

◆ PssFileOperation

enum class portals::PssFileOperation
strong

File boundary that failed before a PSS document could be installed.

Enumerator
OPEN 

Open the explicitly requested file for reading.

READ 

Read bytes from an already opened file.

INPUT_LIMIT 

File bytes exceeded the admitted parser input budget.

◆ PssOriginKind

enum class portals::PssOriginKind
strong

Coordinates describe either original PSS bytes or explicit typed ordinals.

Enumerator
PSS_BYTES 

Actual offsets, LF lines, and byte columns in original PSS input.

SYNTHETIC_TYPED 

Ordinals in a typed snapshot; they are not C++ file coordinates.

◆ PssProperty

enum class portals::PssProperty
strong

PSS v0 declaration identities in metadata and compact descriptions.

Enumerator
FOREGROUND 

RGB text color.

BACKGROUND 

RGB fill color.

BOLD 

Explicit bold flag.

ITALIC 

Explicit italic flag.

UNDERLINE 

Explicit underline flag.

MIN_WIDTH 

State-independent cell minimum.

FRAME_LINE_FOREGROUND 

Frame part frameLine.foreground.

FRAME_LINE_BACKGROUND 

Frame part frameLine.background.

FRAME_LINE_BOLD 

Frame part frameLine.bold.

FRAME_LINE_ITALIC 

Frame part frameLine.italic.

FRAME_LINE_UNDERLINE 

Frame part frameLine.underline.

FRAME_TITLE_FOREGROUND 

Frame part frameTitle.foreground.

FRAME_TITLE_BACKGROUND 

Frame part frameTitle.background.

FRAME_TITLE_BOLD 

Frame part frameTitle.bold.

FRAME_TITLE_ITALIC 

Frame part frameTitle.italic.

FRAME_TITLE_UNDERLINE 

Frame part frameTitle.underline.

FRAME_ENDS_FOREGROUND 

Frame part frameEnds.foreground.

FRAME_ENDS_BACKGROUND 

Frame part frameEnds.background.

FRAME_ENDS_BOLD 

Frame part frameEnds.bold.

FRAME_ENDS_ITALIC 

Frame part frameEnds.italic.

FRAME_ENDS_UNDERLINE 

Frame part frameEnds.underline.

SCROLLBAR_TRACK_FOREGROUND 

Scrollbar track foreground.

SCROLLBAR_TRACK_BACKGROUND 

Scrollbar track background.

SCROLLBAR_TRACK_BOLD 

Scrollbar track bold.

SCROLLBAR_TRACK_ITALIC 

Scrollbar track italic.

SCROLLBAR_TRACK_UNDERLINE 

Scrollbar track underline.

SCROLLBAR_THUMB_FOREGROUND 

Scrollbar thumb foreground.

SCROLLBAR_THUMB_BACKGROUND 

Scrollbar thumb background.

SCROLLBAR_THUMB_BOLD 

Scrollbar thumb bold.

SCROLLBAR_THUMB_ITALIC 

Scrollbar thumb italic.

SCROLLBAR_THUMB_UNDERLINE 

Scrollbar thumb underline.

SCROLLBAR_ENDS_FOREGROUND 

Scrollbar ends foreground.

SCROLLBAR_ENDS_BACKGROUND 

Scrollbar ends background.

SCROLLBAR_ENDS_BOLD 

Scrollbar ends bold.

SCROLLBAR_ENDS_ITALIC 

Scrollbar ends italic.

SCROLLBAR_ENDS_UNDERLINE 

Scrollbar ends underline.

SCROLLBAR_ARROWS_FOREGROUND 

Scrollbar arrows foreground.

SCROLLBAR_ARROWS_BACKGROUND 

Scrollbar arrows background.

SCROLLBAR_ARROWS_BOLD 

Scrollbar arrows bold.

SCROLLBAR_ARROWS_ITALIC 

Scrollbar arrows italic.

SCROLLBAR_ARROWS_UNDERLINE 

Scrollbar arrows underline.

SCROLLBAR_CORNER_FOREGROUND 

Scrollbar corner foreground.

SCROLLBAR_CORNER_BACKGROUND 

Scrollbar corner background.

SCROLLBAR_CORNER_BOLD 

Scrollbar corner bold.

SCROLLBAR_CORNER_ITALIC 

Scrollbar corner italic.

SCROLLBAR_CORNER_UNDERLINE 

Scrollbar corner underline.

SCROLLBAR_TRACK_PATTERN 

Independent scrollbar source.

SCROLLBAR_THUMB_PATTERN 

Independent scrollbar source.

SCROLLBAR_ARROW_PATTERN 

Independent scrollbar source.

SCROLLBAR_THUMB_START_FOREGROUND 

Thumb start foreground.

SCROLLBAR_THUMB_START_BACKGROUND 

Thumb start background.

SCROLLBAR_THUMB_START_BOLD 

Thumb start bold.

SCROLLBAR_THUMB_START_ITALIC 

Thumb start italic.

SCROLLBAR_THUMB_START_UNDERLINE 

Thumb start underline.

SCROLLBAR_THUMB_BODY_FOREGROUND 

Thumb body foreground.

SCROLLBAR_THUMB_BODY_BACKGROUND 

Thumb body background.

SCROLLBAR_THUMB_BODY_BOLD 

Thumb body bold.

SCROLLBAR_THUMB_BODY_ITALIC 

Thumb body italic.

SCROLLBAR_THUMB_BODY_UNDERLINE 

Thumb body underline.

SCROLLBAR_THUMB_END_FOREGROUND 

Thumb end foreground.

SCROLLBAR_THUMB_END_BACKGROUND 

Thumb end background.

SCROLLBAR_THUMB_END_BOLD 

Thumb end bold.

SCROLLBAR_THUMB_END_ITALIC 

Thumb end italic.

SCROLLBAR_THUMB_END_UNDERLINE 

Thumb end underline.

SCROLLBAR_THUMB_SINGLE_FOREGROUND 

Thumb single foreground.

SCROLLBAR_THUMB_SINGLE_BACKGROUND 

Thumb single background.

SCROLLBAR_THUMB_SINGLE_BOLD 

Thumb single bold.

SCROLLBAR_THUMB_SINGLE_ITALIC 

Thumb single italic.

SCROLLBAR_THUMB_SINGLE_UNDERLINE 

Thumb single underline.

SLIDER_TRACK_FOREGROUND 

Slider track foreground.

SLIDER_TRACK_BACKGROUND 

Slider track background.

SLIDER_TRACK_BOLD 

Slider track bold.

SLIDER_TRACK_ITALIC 

Slider track italic.

SLIDER_TRACK_UNDERLINE 

Slider track underline.

SLIDER_FILL_FOREGROUND 

Slider fill foreground.

SLIDER_FILL_BACKGROUND 

Slider fill background.

SLIDER_FILL_BOLD 

Slider fill bold.

SLIDER_FILL_ITALIC 

Slider fill italic.

SLIDER_FILL_UNDERLINE 

Slider fill underline.

SLIDER_THUMB_FOREGROUND 

Slider thumb foreground.

SLIDER_THUMB_BACKGROUND 

Slider thumb background.

SLIDER_THUMB_BOLD 

Slider thumb bold.

SLIDER_THUMB_ITALIC 

Slider thumb italic.

SLIDER_THUMB_UNDERLINE 

Slider thumb underline.

GLYPH_PROFILE 

Named base glyph map.

GLYPH_FALLBACK 

Portable admission fallback.

SCROLLBAR_HORIZONTAL_TRACK_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_THUMB_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_START_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_END_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_BACKWARD_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_FORWARD_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_THUMB_START_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_THUMB_BODY_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_THUMB_END_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_HORIZONTAL_THUMB_SINGLE_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_TRACK_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_THUMB_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_START_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_END_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_BACKWARD_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_FORWARD_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_THUMB_START_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_THUMB_BODY_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_THUMB_END_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_VERTICAL_THUMB_SINGLE_GLYPH 

Owning runtime literal glyph.

SCROLLBAR_CORNER_GLYPH 

Owning runtime literal glyph.

WIDTH 

Runtime state-independent horizontal mode or exact extent.

HEIGHT 

Runtime state-independent vertical mode or exact extent.

MAX_WIDTH 

Runtime state-independent hard column cap.

MIN_HEIGHT 

Runtime state-independent hard row minimum.

MAX_HEIGHT 

Runtime state-independent hard row cap.

ROLE_FOREGROUND 

Runtime named semantic role foreground; name is occurrence metadata.

ROLE_BACKGROUND 

Runtime named semantic role background.

ROLE_BOLD 

Runtime named semantic role bold.

ROLE_ITALIC 

Runtime named semantic role italic.

ROLE_UNDERLINE 

Runtime named semantic role underline.

◆ PublishResult

enum class portals::PublishResult
strong

Whether a publication appended a value or replaced its sender's pending value.

Enumerator
QUEUED 

A new queue entry was accepted.

REPLACED 

This sender's existing pending snapshot was replaced.

◆ QueryError

enum class portals::QueryError
strong

Domain query evaluation failures, separate from scheduler acceptance.

Enumerator
INVALID_ARGUMENT 

Invalid page, limits, or malformed provider result.

LIMIT_EXCEEDED 

Source scan or comparison budget is exhausted.

NOT_READY 

Local source is pending or failed; no I/O is initiated.

STALE_SOURCE 

Result does not have the exact requested source revision.

CANCELLED 

Cooperative cancellation was observed.

NO_MEMORY 

Evaluation could not allocate its bounded storage.

CALLBACK_FAILED 

Domain predicate, comparator, copy, or source read threw.

◆ RadioSelectionMode

enum class portals::RadioSelectionMode
strong

User selection publication policy; active navigation remains local to the group.

Enumerator
ON_ACTIVATION 

Arrows move active; Space/Enter selects.

IMMEDIATE 

Eligible keyboard movement also selects.

◆ RangeState

enum class portals::RangeState
strong

Observable asynchronous range readiness.

Enumerator
PENDING 

Data is not ready; reading must not block or start work.

READY 

Exactly the requested immutable rows are available.

FAILED 

Provider failure is represented by snapshot-owned text and no rows.

◆ RegionalInput

enum class portals::RegionalInput
strong

Proposed input admission for a layout region, independent of visibility.

Enumerator
UNCHANGED 

Use ordinary visible/enabled ancestry.

OPEN 

Admit input in this owner's nonempty region.

CLOSED 

Exclude the region while its own viewport is empty.

◆ RenderErrorKind

enum class portals::RenderErrorKind
strong

Observable full-frame failure; no partial buffer is returned.

Enumerator
COMMAND_LIMIT 

The command count exceeds its cap.

TEXT_BYTE_LIMIT 

Summed original text bytes exceed their cap.

WORK_LIMIT 

Visited graphemes plus clipped fill cells exceed their cap.

POLICY_MISMATCH 

A text run's complete captured width policy differs from the frame policy.

BUFFER_ERROR 

Buffer creation or placement failed; RenderError::buffer_error describes it.

ALLOCATION_FAILURE 

Temporary renderer storage could not be allocated or represented.

INVALID_TEXT_RANGE 

A selected text range exceeds its borrowed grapheme sequence.

◆ RevealAxes

enum class portals::RevealAxes
strong

Axes an ancestor layout may move when revealing this child.

Enumerator
BOTH 

Reveal horizontally and vertically.

HORIZONTAL_ONLY 

Keep a sticky region's vertical position.

◆ RowLookupState

enum class portals::RowLookupState
strong

Identity lookup capability and outcome for a pinned provider snapshot.

Enumerator
UNSUPPORTED 

Provider does not implement an identity index; ordinal scrolling remains available.

NOT_FOUND 

Provider supports lookup, but this full RowId is absent.

FOUND 

The index identifies this RowId in the same snapshot.

◆ SceneResourceErrorCode

Checked resource failure; no arbitrary expression is evaluated.

Enumerator
SYNTAX 

Missing delimiter, invalid token or unsupported expression.

INVALID_UTF8 

Source contains an invalid UTF-8 sequence.

INVALID_LIMIT 

A resource limit is zero or depth exceeds the supported stack bound.

SOURCE_LIMIT 

Source bytes exceed the configured cap.

NODE_LIMIT 

Node count exceeds the configured cap.

DEPTH_LIMIT 

Nesting exceeds the configured cap.

STRING_LIMIT 

Decoded string bytes exceed the configured cap.

PROPERTY_LIMIT 

A node has too many properties.

UNKNOWN_TYPE 

Type is absent from the explicit allowlist.

DUPLICATE_TYPE 

Registry already contains this explicit type name.

UNKNOWN_PROPERTY 

Property is unsupported for this registered type.

DUPLICATE_ID 

Two nodes declare the same nonempty id.

DUPLICATE_PROPERTY 

A property or positional text was repeated.

INVALID_VALUE 

A property value violates its declared primitive bounds.

CHILDREN_FORBIDDEN 

A leaf type declares child nodes.

FILE_IO 

File open/read failed; system carries the OS cause when available.

NO_MEMORY 

Parser, resolver or recipe storage allocation failed.

TEXT 

Original text/resource validation failed; ManagedError retains its category.

FACTORY 

An explicit typed recipe factory failed; its original cause is preserved.

CYCLIC_TYPE 

A named control inherits from itself, directly or indirectly.

TYPE_LIMIT 

Named control definitions exceed their finite context budget.

MATERIALIZATION_LIMIT 

Merged property leaves exceed the complete mount budget.

SECRET_LITERAL 

A protected editor declares a nonempty literal or text-resource expression.

◆ SchedulerError

enum class portals::SchedulerError
strong

Observable operation failures; no callback is started on rejection.

Enumerator
INVALID_ARGUMENT 

Invalid option, null snapshot or unsupported lane/overflow combination.

WRONG_THREAD 

Operation requires the creating UI thread.

WRONG_SCHEDULER 

The supplied scope belongs to another scheduler.

CLOSED 

Scheduler, scope, registration or endpoint is closed.

WOULD_BLOCK 

A bounded queue or registration budget has no available slot.

NO_MEMORY 

Allocation failed inside the operation boundary.

REENTRANT_DISPATCH 

Dispatch or blocking wait was called from active dispatch.

IDENTITY_EXHAUSTED 

The monotonic identity counter cannot issue another ID.

CALLBACK_FAILED 

A user callback threw; dispatch disconnects its registration.

◆ SchedulerLane

enum class portals::SchedulerLane
strong

Independent finite queues; control is serviced before data each cycle.

Enumerator
DATA 

Ordinary immutable data publications.

CONTROL 

Control input serviced before timers and data.

◆ SchedulerOverflow

enum class portals::SchedulerOverflow
strong

Replace only this sender's pending display snapshot; never raw domain events.

Enumerator
REJECT 

Reject publication when the lane has no free queue slot.

REPLACE_LATEST 

Replace only this sender's pending data snapshot, preserving its FIFO position.

◆ SchedulerWake

enum class portals::SchedulerWake
strong

A finite wait ended by work, explicit wake, stop or timeout.

Enumerator
READY 

Work, a due timer or an explicit wake is available.

STOPPED 

Stop was requested; no further publications are accepted.

TIMEOUT 

The bounded real-time wait expired.

◆ ScrollAxis

enum class portals::ScrollAxis
strong

Logical scrolling axis; X increases right and Y increases down.

Enumerator
HORIZONTAL 

Columns.

VERTICAL 

Rows.

◆ ScrollbarArrowPattern

enum class portals::ScrollbarArrowPattern
strong

Independent functional-arrow source; selecting it never enables buttons.

Enumerator
LEGACY 

Existing functional arrow source.

TRIANGLE 

Triangle glyphs with the control width/glyph fallback.

ASCII 

Less-than, greater-than, caret and lowercase v.

◆ ScrollbarPattern

enum class portals::ScrollbarPattern
strong

Opt-in scrollbar glyph presets; legacy calls retain their original appearance.

Enumerator
LEGACY 

Existing shaded track and block thumb.

FRAME 

Actual frame lines, or single lines on an unframed control.

MINIMAL 

Blank track and block thumb.

ASCII 

Dot track and hash thumb.

FRACTIONAL_BLOCK 

Blank track and eighth-cell block placement; explicit leaves keep priority.

◆ ScrollBarPolicy

enum class portals::ScrollBarPolicy
strong

Presence policy, independent of whether the content can scroll.

Enumerator
NEVER 

Do not allocate or paint a bar.

AUTO 

Show a bar only when its logical extent exceeds the viewport.

ALWAYS 

Show a bar even when its thumb cannot move.

◆ ScrollbarThumbPattern

enum class portals::ScrollbarThumbPattern
strong

Independent thumb source; all choices are opt-in.

Enumerator
LEGACY 

Existing repeated thumb, including ASCII fallback.

BLOCK 

Explicit block with the control width/glyph fallback.

ASCII 

Hash thumb.

FRACTIONAL_BLOCK 

Eighth-cell block placement; requires a blank track and no custom thumb shapes.

◆ ScrollPlacement

enum class portals::ScrollPlacement
strong

Explicit relationship between bars, content and an optional frame.

Enumerator
RESERVED 

Bars occupy one-cell gutters outside the logical viewport.

OVERLAY 

Bars obscure edge cells of the unchanged logical viewport.

ON_FRAME 

Bars occupy the right/bottom frame lines, excluding corners.

◆ SearchError

enum class portals::SearchError
strong

Search/provider errors, separate from scheduler and UI delivery errors.

Enumerator
INVALID_ARGUMENT 

Invalid configuration or malformed source identity.

INVALID_TEXT 

Invalid UTF-8 or unsupported text policy.

NOT_READY 

Source snapshot has no ready immutable rows.

LIMIT_EXCEEDED 

A finite byte, row, grapheme, frontier or work budget was exceeded.

STALE_SOURCE 

The exact source/policy key no longer matches.

CANCELLED 

Cooperative cancellation was observed.

NO_MEMORY 

Allocation failed within the declared budget.

CALLBACK_FAILED 

Projection/read callback threw.

UNAVAILABLE 

Borrowed executor does not offer worker-owned cache storage.

◆ SearchStrategy

enum class portals::SearchStrategy
strong

Indexed term-prefix strategy; fuzzy edit distance is over normalized graphemes.

Enumerator
PREFIX 

Exact normalized prefix of the complete label or a whitespace token.

FUZZY_PREFIX 

Also allow one insertion/deletion/substitution from three query graphemes.

◆ SecureStringErrorCode

enum class portals::SecureStringErrorCode
strong

Technical failure categories independent of UI/tree errors.

Enumerator
INVALID_ARGUMENT 

Options contain an invalid bound or storage-policy value.

TOO_LARGE 

Logical size or backend rounding exceeds a checked bound.

NO_MEMORY 

Metadata, callable capture or payload allocation failed.

UNSUPPORTED 

A mandatory requested guarantee is unavailable for this policy or platform.

SECURITY_FAILURE 

Native guard, lock, dump-exclusion or crypto setup/access failed.

BUSY 

The same storage already has an active plaintext borrow.

UNAVAILABLE 

The handle is moved-from, closed or invalidated by a security failure.

CALLBACK_FAILED 

Callable capture/invocation threw or a callback returned its typed error.

RELEASE_FAILED 

Backend release failed; zeroed allocation metadata may remain for retry.

◆ SecureStringOperation

enum class portals::SecureStringOperation
strong

Operation recorded without secret bytes or exception messages.

Enumerator
CREATE 

Validate options and create an owning value.

ASSIGN 

Replace the logical bytes of a live value.

APPEND 

Append application bytes to a live value.

CLEAR 

Replace a live value with an empty value under the same policy.

CLOSE 

Explicitly close storage through the checked lifecycle.

BORROW 

Admit plaintext access, capture a callable or invoke its callback.

ALLOCATE 

Allocate payload storage and establish its exterior guards.

LOCK 

Apply the requested native resident-page lock.

DUMP 

Apply the requested native core-dump exclusion.

ENCRYPT 

Encrypt payload bytes for idle storage.

DECRYPT 

Decrypt payload bytes before scoped access or copying.

RELEASE 

Release an already-wiped allocation to its backend.

ENTROPY 

Obtain native cryptographic entropy for a key or fresh nonce.

◆ SecureStringStorage

enum class portals::SecureStringStorage
strong

Explicit storage policy; unsupported native protection never falls back.

Enumerator
NATIVE_GUARDED 

Dedicated native RW payload surrounded by inaccessible pages.

WIPE_ONLY 

Explicit weaker heap/linear-memory policy with wiping alone.

◆ SemanticRole

enum class portals::SemanticRole
strong

Theme-independent source roles implemented by these profiles.

Enumerator
NORMAL 

Unclassified source and whitespace.

KEYWORD 

Recognized SQL keyword.

NUMBER 

Decimal SQL number component.

STRING 

SQL literal or literal Markdown code region.

COMMENT 

SQL comment or executable-comment wrapper bytes.

IDENTIFIER 

SQL unquoted or quoted identifier.

OPERATOR 

SQL punctuation or operator character.

HEADING 

Markdown ATX heading marker and text.

MARKUP 

Markdown delimiter/punctuation or MySQL client directive/terminator.

◆ ShortcutErrorKind

enum class portals::ShortcutErrorKind
strong

Bounded shortcut syntax and value-validation failures, never borrowing source text.

Enumerator
INVALID_OPTIONS 

A parser budget is zero.

SOURCE_LIMIT 

Source exceeds its byte budget.

ALTERNATIVE_LIMIT 

Too many alternatives.

STROKE_LIMIT 

Too many key strokes in one alternative.

EMPTY_ALTERNATIVE 

Missing alternative before or after a separator.

EMPTY_TOKEN 

Missing token around a plus or comma separator.

UNKNOWN_KEY 

Unsupported ASCII key/modifier name, including physical qualifiers.

DUPLICATE_MODIFIER 

One semantic modifier occurs twice in a stroke.

EXPECTED_KEY 

Modifiers were provided without a key.

UNSUPPORTED_SEQUENCE 

Reserved legacy diagnostic; valid sequences are now supported.

INVALID_CHORD 

Invalid semantic key/scalar combination.

NO_MEMORY 

Owning alternative allocation failed.

INVALID_ACTION_SET 

Empty action set or invalid action; offset identifies the action index.

AMBIGUOUS_PREFIX 

An alternative is a proper prefix of another in this registration.

RESERVED_CANCEL 

Unmodified Escape is reserved for cancelling pending input.

◆ SizeMode

enum class portals::SizeMode
strong

Independent axis allocation policy, in integer terminal cells.

Enumerator
AUTOMATIC 

Use the preferred/intrinsic extent; shrink towards minimum when space is scarce.

FIXED 

Keep the bounded preferred/intrinsic extent even when it overflows the available space.

FLEX 

Share spare main-axis cells by weight; allow shrinking towards minimum.

CONTENT 

Prefer intrinsic size, shrink towards minimum, and never grow to consume spare cells.

◆ SliderOperationKind

enum class portals::SliderOperationKind
strong

Origin of a local numeric operation, without a global command/history identity.

Enumerator
DRAG 

One admitted mouse press and its captured continuation.

STEP 

One keyboard press/repeat or a click on a host without capture support.

◆ SliderOperationStatus

enum class portals::SliderOperationStatus
strong

One completed or interrupted numeric user operation.

Enumerator
COMPLETED 

Normal matching release or one accepted keyboard action.

CANCELLED 

Capture/eligibility loss or Escape; applied live values are retained.

CONFLICT 

Another source revision superseded this operation; no rollback is performed.

◆ SliderSkin

enum class portals::SliderSkin
strong

Built-in one-cell slider glyph sets.

Enumerator
ASCII 

Compatible default, retaining the original unfilled appearance.

LINE 

Fine track with a stronger filled prefix.

ROUNDED 

Dotted track and rounded thumb.

BLOCKS 

Shaded track and solid filled prefix.

◆ SourceAnchorKind

enum class portals::SourceAnchorKind
strong

Entry operation; ENTRY does not promise a global origin.

Enumerator
ENTRY 

Provider entry, without a global-origin promise.

CURSOR 

Valid gap token in this immutable session.

TAIL 

Capability-gated available-tail window.

ROW 

Capability-gated stable-identity lookup.

◆ SourceDirection

enum class portals::SourceDirection
strong

Requested traversal; returned rows remain in display order.

Enumerator
FORWARD 

Read after the requested gap.

BACKWARD 

Read before the requested gap.

◆ SourceEdge

enum class portals::SourceEdge
strong

State beyond a ready page in the requested direction.

Enumerator
MORE 

Continuation exists; short/empty pages do not imply end.

TEMPORARY_TAIL 

Current forward tail; wait for readiness or user demand.

FINAL_END 

Definitive boundary in this direction for this session.

◆ SourceError

enum class portals::SourceError
strong

Source protocol and admission failures, independent of a provider's storage format.

Enumerator
INVALID_ARGUMENT 

Invalid options, enum, identity or command shape.

WRONG_THREAD 

UI ownership or worker-only load affinity was violated.

CLOSED 

Source, consumer or node delivery scope has retired.

WOULD_BLOCK 

Root, work, frame or consumer capacity rejected admission.

NO_MEMORY 

Allocation failed inside a fallible operation.

IDENTITY_EXHAUSTED 

An identity or readiness revision cannot advance without reuse.

CALLBACK_FAILED 

Provider construction/preparation threw an unexpected exception.

CONTEXT_ERROR 

The tree rejected a stale/foreign context or invalidation.

UNSUPPORTED 

A required optional capability is unavailable.

STALE_SOURCE 

The supplied immutable source namespace does not match.

INVALID_CURSOR 

The provider cannot validate this opaque token.

REVISION_CHANGED 

Requested provider revision is unavailable or a notification is stale.

POSITION_EXHAUSTED 

Provider position representation cannot advance without wrapping.

ROW_NOT_FOUND 

A supported stable-identity lookup did not find its row.

ROW_TOO_LARGE 

One materialized row exceeds its inline/transitive byte limit.

PAGE_TOO_LARGE 

The fixed page/workspace cannot hold the requested allocation.

INVALID_REPLY 

Result shape, identities, revision or boundaries violate the protocol.

NO_PROGRESS 

A MORE reply repeated its input gap.

CURSOR_CYCLE 

A MORE reply repeated an earlier gap of this bounded fill.

CONTINUATION_LIMIT 

Demand remains after four automatic page loads; partial pin is valid.

CANCELLED 

Explicit navigation cancellation or cooperative worker cancellation.

ALREADY_COMPLETED 

This request generation already ran its single load.

IO_ERROR 

Native source I/O failed; a typed adapter retains its per-operation cause.

◆ SourceReadState

enum class portals::SourceReadState
strong

Distinct provider states; a short ready page never implies end.

Enumerator
READY 

Owning page and explicit edge are available.

PENDING 

Data is not ready; no row count or EOF is inferred.

HISTORY_UNAVAILABLE 

A formerly valid gap expired; recovery is explicit.

FAILED 

Typed failure, without replacement rows.

◆ SpinBoxSkin

enum class portals::SpinBoxSkin
strong

Immutable presentation of the two numeric step buttons.

Enumerator
STANDARD 

Five-cell bracketed minus/plus buttons; the default.

COMPACT 

Legacy one-cell minus/plus buttons.

ARROWS 

Bracketed down/up arrows with ASCII width fallback.

◆ SpinnerDirection

enum class portals::SpinnerDirection
strong

Traversal of the finite owning frame sequence.

Enumerator
FORWARD 

Increasing frame indices with wraparound.

REVERSE 

Decreasing frame indices with wraparound.

◆ SpinnerPreset

enum class portals::SpinnerPreset
strong

Original single-row indeterminate animation sequences.

Enumerator
DOTS 

Three positions, moving left to right.

LINE 

Portable ASCII rotating line.

BRAILLE 

Eight one-cell braille positions; ASCII fallback for incompatible widths.

BAR_BOUNCE 

Five positions traversed in both directions.

ARC 

Rotating arc.

CIRCLE 

Circle phases.

SQUARE 

Square phases.

TRIANGLE 

Triangle phases.

ARROW 

Arrow directions.

BLOCKS 

Rising and falling blocks.

ELLIPSIS 

Growing dots.

PULSE 

Pulsing indicator.

◆ StyleSizeMode

enum class portals::StyleSizeMode
strong

State-independent style request for one allocation axis.

Enumerator
AUTOMATIC 

Use the ordinary preferred/intrinsic allocation.

FIXED 

Intersect an exact cell extent with all hard bounds.

FLEX 

Share spare cells using the positive weight.

CONTENT 

Prefer intrinsic content without consuming spare cells.

◆ StyleState

enum class portals::StyleState
strong

Presentation states; ANY matches every state without changing behavior.

Enumerator
ANY 

Match all presentation variants.

NORMAL 

Ordinary content.

FOCUSED 

Synchronized control focus.

DISABLED 

Synchronized control ineligibility.

SELECTED 

Selected row or editor range.

HEADER 

Fixed table heading.

CARET 

Editor software caret.

◆ StyleTier

enum class portals::StyleTier
strong

Independent cascade priority, before selector specificity.

Enumerator
DEFAULTS 

Declarations above widget defaults and below all other tiers.

THEME 

Reserved theme declarations controlled by one authority lease.

APPLICATION 

Application overrides, above THEME.

USER 

User overrides, above APPLICATION.

◆ TerminalErrorKind

enum class portals::TerminalErrorKind
strong

Terminal failure classification; native_code provides platform detail.

Enumerator
INVALID_OPTIONS 

An option or handle is outside its supported range.

UNSUPPORTED 

Handles are not terminals, or no backend is implemented.

SYSTEM 

A native system operation failed.

CLOSED 

Session was closed or moved from.

OUTPUT_PENDING 

The previous output batch is not complete.

OUTPUT_LIMIT 

The new batch exceeds max_output_bytes.

INPUT_DECODE 

Windows input decoder failed; close and reopen the session.

OUTPUT_UNCERTAIN 

Windows output was cancelled/failed; close before further submission.

INPUT_LIMIT 

Retained managed startup input exceeds max_input_bytes.

INPUT_PROTOCOL 

A correlated wire-coordinate transition failed; close restores owned modes.

◆ TerminalProtocolIssue

enum class portals::TerminalProtocolIssue
strong

Concrete protocol context failures, independent of native errno values.

Enumerator
NONE 

No additional protocol context classification.

INITIAL_PIXEL_CONTEXT_UNKNOWN 

Input predates managed cell setup while 1016 is already active.

◆ TerminalStatus

enum class portals::TerminalStatus
strong

Why an input or output operation returned.

Enumerator
PROGRESS 

Input/resize available, or the entire pending output batch completed.

DEADLINE 

Absolute deadline reached; inspect error for Windows output uncertainty.

STOPPED 

Stop requested; inspect error for Windows output uncertainty.

END_OF_INPUT 

Input ended after previously readable bytes were delivered.

FAILED 

Inspect the accompanying error; no hidden output retry occurs.

◆ TextDisplay

enum class portals::TextDisplay
strong

How a cell renderer must display a complete logical cluster.

Enumerator
PRINTABLE 

Original cluster bytes may be displayed under the selected policy.

UNSUPPORTED 

Display ASCII '?' in one cell; never emit the original bytes.

◆ TextDocumentError

enum class portals::TextDocumentError
strong

Finite document error; rejected operations preserve published state.

Enumerator
NO_MEMORY 

Allocation/representation failure.

INVALID_TEXT 

Invalid UTF-8, width policy or configured text limit.

NOT_BOUNDARY 

Byte offset is not an extended grapheme boundary.

INVALID_ARGUMENT 

Invalid target, range or options.

WOULD_BLOCK 

One history operation exceeds its finite retention budget.

EMPTY 

No Undo/Redo is available.

STALE 

Receipt belongs to another document or superseded save request.

EXHAUSTED 

A monotonic counter cannot advance.

CONFLICT 

External content was reported; explicit replacement acceptance is required.

◆ TextErrorKind

enum class portals::TextErrorKind
strong

Observable text construction/cursor failure.

Enumerator
INVALID_UTF8 

Invalid UTF-8, including overlong, surrogate or truncated input.

INPUT_LIMIT 

Input length exceeds its configured/representation limit.

CLUSTER_LIMIT 

One whole cluster exceeds its byte limit.

GRAPHEME_LIMIT 

The number of clusters exceeds its limit.

CELL_LIMIT 

Cell accumulation exceeds its configured/int32_t limit.

INVALID_POLICY 

A width policy enum value is not recognized.

NOT_BOUNDARY 

A cursor offset is outside the text or inside a cluster.

◆ TextHistoryError

enum class portals::TextHistoryError
strong

Technical history failure; no state is changed on failure.

Enumerator
NO_MEMORY 

Allocation or representational storage failure.

WOULD_BLOCK 

One complete operation exceeds the configured finite byte budget.

INVALID_TEXT 

Text violates UTF-8, width policy or text limits.

NOT_BOUNDARY 

A selection offset is not an extended grapheme boundary.

EMPTY 

No operation is available in the requested direction.

STALE 

Prepared state belongs to another owner or is no longer current.

EXHAUSTED 

The monotonically increasing preparation generation cannot advance.

◆ TextHistoryKind

enum class portals::TextHistoryKind
strong

Semantic editing categories; only the first three can form groups.

Enumerator
TYPING 

Plain insertion without replacing a selection.

BACKSPACE 

Deletion immediately before the cursor.

FORWARD_DELETE 

Deletion immediately after the cursor.

PASTE 

A separate clipboard insertion.

CUT 

A separate clipboard removal.

REPLACEMENT 

A separate selection replacement.

PROGRAMMATIC 

A separate recorded programmatic edit.

◆ TextResourceError

enum class portals::TextResourceError
strong

Observable resource lookup failure, distinct from UTF-8 validation.

Enumerator
MISSING_RESOURCE 

The caller's resolver could not find the requested resource key.

RESOLVER_REQUIRED 

Resource resolution was requested without a caller-owned resolver.

RESOLVER_FAILED 

The resolver reported failure or threw a non-allocation exception.

◆ TitleDecoration

enum class portals::TitleDecoration
strong

Optional top-title break decoration; NONE preserves literal legacy titles.

Enumerator
NONE 

No additional title cells.

SPACED 

One space on either side.

SQUARE 

Square brackets and inner spaces.

ANGLE 

Angle brackets and inner spaces.

ROUND 

Parentheses and inner spaces.

PROFILE 

Explicit selected profile caps; customTitleDecoration still wins.

◆ ToastOverflowPolicy

enum class portals::ToastOverflowPolicy
strong

Policy when the total retained-record budget is full.

Enumerator
DROP_OLDEST_PENDING 

Evict the oldest eligible queued transient, otherwise drop the new request.

REJECT_NEW 

Fail with NODE_LIMIT without changing the queue.

◆ ToastPlacement

enum class portals::ToastPlacement
strong

Corner of the owning content viewport.

Enumerator
BOTTOM_END 

Lower right corner.

TOP_END 

Upper right corner.

BOTTOM_START 

Lower left corner.

TOP_START 

Upper left corner.

◆ ToastPostStatus

enum class portals::ToastPostStatus
strong

Logical admission result; visibility does not acknowledge terminal output.

Enumerator
ACCEPTED_VISIBLE 

Selected within the logical visible cap; may still be clipped.

ACCEPTED_QUEUED 

Retained behind the selected FIFO prefix.

DEDUPLICATED 

Existing identity, payload and action retained.

DROPPED 

Successful intentional overflow outcome, without an adopted identity.

◆ ToastSeverity

enum class portals::ToastSeverity
strong

Notification meaning, independent of persistence or application error policy.

Enumerator
INFO 

Informational message, represented by i in monochrome.

SUCCESS 

Successful application operation, represented by +.

WARNING 

Application warning, represented by !.

FAILURE 

Application failure, represented by x; does not intercept runtime errors.

◆ TreeError

enum class portals::TreeError
strong

Checked tree failures; rejected operations never start the requested callback.

Enumerator
INVALID_ARGUMENT 

An option, enum value or operation argument is invalid.

WRONG_THREAD 

Operation requires the tree's UI thread.

WRONG_SESSION 

An identity or scope belongs to another tree/scheduler.

STALE_NODE 

The observed node or model consumer is absent or retired.

CLOSED 

The owning tree or source is closed.

WOULD_BLOCK 

The current frame/reentry boundary or finite queue/work budget rejects this operation.

NO_MEMORY 

Allocation failed inside the operation boundary.

IDENTITY_EXHAUSTED 

A session, generation or revision cannot advance without reuse.

NODE_LIMIT 

The configured live node, observer or consumer limit was reached.

DEPTH_LIMIT 

Inserting the child would exceed the configured tree depth.

CALLBACK_FAILED 

A user extension or callback threw.

INVALID_GEOMETRY 

Required arranged geometry is absent or translation overflowed.

◆ UiDeliveryState

enum class portals::UiDeliveryState
strong

Execution outcome, independent of successful enqueue admission.

Enumerator
PENDING 

Accepted, but the UI callback has not returned yet.

APPLIED 

The UI callback returned successfully; external effects are not transactional.

CANCELLED 

Scope, subscription or scheduler closed before callback admission.

FAILED 

The UI callback returned a typed error or threw an exception.

◆ UiTaskRestart

enum class portals::UiTaskRestart
strong

Explicit policy for repeated actions on one owner.

Enumerator
REJECT_RUNNING 

Default: preserve the active invocation and reject the new task.

CANCEL_PREVIOUS 

Cancel a suspended invocation before adopting the new task; active resume still rejects.

◆ UiTaskStatus

enum class portals::UiTaskStatus
strong

Retained business outcome, independent of scheduler queue acceptance.

Enumerator
IDLE 

No invocation has been adopted.

RUNNING 

One frame is executing or waiting.

SUCCEEDED 

The coroutine returned success.

CANCELLED 

Explicit cancellation, replacement, node removal or owner closure stopped the frame.

FAILED 

The coroutine returned an error or threw.

◆ VisibleModelReadState

enum class portals::VisibleModelReadState
strong

A view has not published ready physical rows; no case denotes successful emptiness.

Enumerator
NOT_PREPARED 

No current preparation, including after scroll or configuration changes.

PENDING 

The provider has not supplied the prepared interval.

FAILED 

The provider rejected the prepared interval.

◆ WindowStatus

enum class portals::WindowStatus
strong

Current consumer outcome; ready pins remain valid through every transition.

Enumerator
EMPTY 

No explicit navigation has started.

LOADING 

Admitted work needs worker dispatch or delivery.

READY 

Layout demand is filled; pin retains its explicit edge.

PENDING 

Readiness is pending; previous pin remains valid.

TEMPORARY_TAIL 

Unfilled window reached the current forward tail.

FINAL_END 

Unfilled window reached a definitive boundary.

HISTORY_UNAVAILABLE 

Requested history expired; recovery is not automatic.

FAILED 

lastError identifies failure; committed pin remains valid.

Function Documentation

◆ adjustGaugeValue()

std::expected< void, TreeError > portals::adjustGaugeValue ( WidgetTree & tree,
Node< Gauge > node,
double delta )
Parameters
treeBorrowed UI owner; mutation is allowed only between frames.
nodeLive gauge belonging to tree.
deltaFinite amount added to the current value without clamping.
Returns
Checked boundary/value error, or success. Nonfinite/out-of-range results preserve state; unchanged results request no redraw, other changes invalidate PAINT before publication.

◆ aggregateCheckState()

std::expected< CheckState, TreeError > portals::aggregateCheckState ( std::span< const CheckState > states)
constexpr

Combine borrowed states without allocation or retained references.

Parameters
statesValues read during this call; empty input is unchecked.
Returns
Unchecked for all unchecked, checked for all checked, otherwise mixed; INVALID_ARGUMENT for any invalid enum value. May run in constant evaluation.

◆ aggregateColumn()

template<std::size_t I, class T, class Formatter>
requires (std::is_aggregate_v<T> && I < boost::pfr::tuple_size_v<T> && ColumnFormatter<T, AggregateFieldProjection<I, T>, Formatter>)
TableColumn< T > portals::aggregateColumn ( TableColumnOptions options,
Formatter formatter )

Create a typed column for one selected field of a PFR SimpleAggregate.

Template Parameters
IZero-based field index, less than the aggregate field count.
TSimpleAggregate row type supported by Boost.PFR, without base classes, reference or const members, or C array members.
FormatterCopyable callable accepting the borrowed const field and returning exactly GraphemeText.
Parameters
optionsExplicit owning ID, display header, and width. PFR member names are not captions or i18n keys.
formatterCallable copied into the returned column; any captured borrows remain the caller's responsibility.
Returns
Existing typed column, with the same validation and exception behavior as tableColumn. The row and its field are borrowed for each callback invocation. Direct callback exceptions propagate.

◆ aggregateColumns() [1/2]

template<class T, std::size_t N, class Formatter>
requires (std::is_aggregate_v<T> && N == boost::pfr::tuple_size_v<T> && detail::aggregateFieldsFormattable<T, Formatter>
(std::make_index_sequence<N>{}))
std::expected< std::array< TableColumn< T >, N >, TextError > portals::aggregateColumns ( std::array< ColumnCaption, N > captions,
Formatter formatter,
WidthPolicy policy = {} )

Assemble a fixed aggregate schema without manual column IDs or generations.

Template Parameters
TPFR SimpleAggregate record; borrowed const fields in declaration order.
NCaption count, equal to the aggregate field count.
FormatterCopyable exact GraphemeText formatter accepting every field type.
Parameters
captionsOwning display captions and widths, in declaration order.
formatterIndependent owning copy per column, using the table's width policy.
policyPolicy used to validate every header; must match the formatter and table.
Returns
Owning fixed columns with deterministic IDs 1..N, or the first header TextError. Assemble once and retain the returned columns for subsequent reordering. Dynamic schema replacement uses explicit TableColumnOptions instead. No identity is derived from display text, and construction does not invoke the formatter or copy any row.

◆ aggregateColumns() [2/2]

template<class T, std::size_t N, class Formatter>
requires (std::is_aggregate_v<T> && N == boost::pfr::tuple_size_v<T> && detail::aggregateFieldsFormattable<T, Formatter>
(std::make_index_sequence<N>{}))
std::array< TableColumn< T >, N > portals::aggregateColumns ( std::array< TableColumnOptions, N > options,
Formatter formatter )

Create columns for every field in PFR's aggregate declaration order.

Template Parameters
TSimpleAggregate row type supported by Boost.PFR, without base classes, reference or const members, or C array members.
NNumber of explicit metadata entries; must equal the PFR field count.
FormatterCopyable callable accepting every borrowed const field type and returning exactly GraphemeText.
Parameters
optionsExplicit owning IDs, display headers, and widths in field order. Names are never inferred.
formatterGeneric callable copied independently into every column; captured references remain borrowed.
Returns
An array of existing typed columns, preserving metadata and field order. Construction can throw while copying callbacks or allocating storage. The formatter is never invoked during construction. Row fields are borrowed only for the formatter call; direct callback exceptions propagate.

◆ appendLogBatch()

std::expected< LogAppendReceipt, LogError > portals::appendLogBatch ( WidgetTree & tree,
Node< LogView > node,
std::string_view bytes )
Parameters
treeBorrowed UI owner, outside frames; managed preparation must remain attached.
nodeManaged initialized live log; raw WidgetTree emplacement returns INVALID_ARGUMENT.
bytesComplete borrowed UTF-8 batch; copied before successful return.
Returns
Atomic receipt or original tree/text error. Failed admission leaves all log data unchanged. Empty input is a checked no-op. Later frame preparation errors do not undo a successful append.

◆ bindButton()

std::expected< ActionBinding, TreeError > portals::bindButton ( EventRouter & router,
Node< Button > node,
std::function< void()> action )

Bind one activation callback on UI outside a frame; the caller owns the returned disconnect token.

Parameters
routerBorrowed router for node's tree; its tree and Scheduler must outlive the router. The token may outlive the router, following ActionBinding's lifetime contract.
nodeObserving button handle in router's tree; input eligibility remains the router's responsibility.
actionRequired owning void callback, transferred into the registration. Captures must remain valid for an admitted call, including after token destruction; router reclamation releases them on UI.
Returns
An owning ActionBinding, or INVALID_ARGUMENT for an empty callback/duplicate registration; WRONG_THREAD, WRONG_SESSION, STALE_NODE, closed, WOULD_BLOCK (frame/nested dispatch), NO_MEMORY, NODE_LIMIT or CALLBACK_FAILED from the router registration boundary.
Exceptions
std::bad_allocIf construction of the by-value callback argument cannot allocate before API entry. Other exceptions from user capture construction before API entry also propagate.

Unmodified activate (including Enter), text Space and left mouse press activate once. Releases, motion, paste and other input are ignored. Callback can remove the node/ancestor or destroy its token; existing router/tree borrows retain the admitted widget and captures. Invocation exceptions become CALLBACK_FAILED through the router and do not undo completed user effects.

◆ bindButtonClick()

std::expected< ActionBinding, TreeError > portals::bindButtonClick ( EventRouter & router,
Node< Button > node,
std::function< void(const ClickEvent &)> action,
bool allowModified = true )

Bind activation with owning parameters through the existing scoped router token.

Parameters
routerBorrowed UI router; its ordinary lifetime and admission rules apply.
nodeLive button whose identity is passed as ClickEvent::target.
actionRequired owning callback; admitted calls survive self-removal and token destruction.
allowModifiedAdmit modified activation; false retains legacy unmodified admission.
Returns
Scoped token or the same registration errors as bindButton, including NO_MEMORY. Action ACTIVATE, Space and left PRESS activate; release/motion/paste are ignored. Callback argument construction precedes entry and can throw. Captured references remain borrowed.

◆ bindCheckbox() [1/2]

std::expected< CheckBoxBinding, TreeError > portals::bindCheckbox ( WidgetTree & tree,
EventRouter & router,
Node< CheckBox > node,
std::shared_ptr< Property< bool > > model,
std::function< void(CheckBoxResult)> changed )

Bind and initially synchronize a checkbox on UI outside a frame; the caller owns the returned token.

Parameters
treeBorrowed UI tree containing node and the model's invalidation target; outlives the binding/model.
routerBorrowed router for the same tree; tree, router and Scheduler outlive the binding.
nodeObserving checkbox handle receiving presentation updates and routed activations.
modelRequired shared owner of Property<bool>; retained by the binding's action and subscription.
changedRequired owning callback accepting CheckBoxResult by value. It receives the exact result of this gesture's set: unexpected means no commit, while a successful receipt can contain rejected or cancelled notifications. Receipt snapshots own their value and may be retained; callbacks may remove node/ancestors or destroy the binding. Observer deliveries never call changed.
Returns
An owning CheckBoxBinding, or INVALID_ARGUMENT for a null model/callback or duplicate action; WRONG_THREAD, WRONG_SESSION, STALE_NODE, closed, WOULD_BLOCK (frame/nested dispatch), NO_MEMORY, NODE_LIMIT, CALLBACK_FAILED or another delegated Property/WidgetTree/EventRouter registration error.
Exceptions
std::bad_allocIf construction of the by-value callback argument cannot allocate before API entry. Other exceptions from user capture construction before API entry also propagate.

Gestures match Button. Toggle reads the latest model, commits once, updates presentation immediately even on rejected notifications, then transfers the exact receipt to changed. Invocation exceptions follow EventRouter's CALLBACK_FAILED contract; a committed model is never rolled back. Observer deliveries read the latest snapshot, so an old queued event cannot undo a toggle.

◆ bindCheckbox() [2/2]

std::expected< CheckStateBinding, TreeError > portals::bindCheckbox ( WidgetTree & tree,
EventRouter & router,
Node< CheckBox > node,
std::shared_ptr< Property< CheckState > > model,
std::function< void(CheckStateResult)> changed,
CheckBoxOptions options = {} )

Bind an explicit checkbox state on UI, preserving Property commit receipts.

Parameters
treeBorrowed UI tree; outlives binding, model and router.
routerBorrowed router for tree; existing eligibility/admission rules apply.
nodeObserving live checkbox identity.
modelRequired shared UI model; invalid committed enum values are rejected by sync/input.
changedRequired owning activation callback; receives one exact receipt, even on failure.
optionsOwning cycle policy; invalid policy returns INVALID_ARGUMENT.
Returns
Scoped binding or existing TreeError registration/synchronization errors; INVALID_ARGUMENT for null model, empty callback or invalid enum values. No business callback on external updates.
Note
Tree/router/scheduler outlive the UI-affine token. Admitted callbacks survive self-removal. Call sync before frames to recover rejected notifications. Equal values never repaint or republish. Callback exceptions become CALLBACK_FAILED through routing and cannot undo a committed model value.

◆ bindLineEdit()

std::expected< LineEditBinding, TreeError > portals::bindLineEdit ( WidgetTree & tree,
EventRouter & router,
Node< LineEdit > node,
std::shared_ptr< Property< std::string > > model,
std::function< void(LineEditResult)> result,
std::shared_ptr< Clipboard > clipboard = {},
std::function< bool(std::string_view)> validate = {} )

Bind a one-line editor and adopt its initial model on UI outside frames.

Parameters
treeBorrowed UI owner, outliving binding and model.
routerBorrowed router for this tree, outliving binding.
nodeObserving editor handle; one action registration is allowed per node.
modelRequired shared model owner. External values must satisfy editor text limits.
resultRequired owning callback, invoked before typed events for editing/confirmation operations; may remove node/ancestors or destroy the binding. Successful commits stay committed if this callback throws.
clipboardOptional shared UI service for Ctrl+C/X/V; absence reports CLIPBOARD_FAILED.
validateOptional publication predicate borrowing an owned candidate only during its call. False preserves draft with VALIDATION_FAILED; exceptions report FAILED/CALLBACK_FAILED.
Returns
Owning binding or delegated tree/router/property error; invalid initial text is INVALID_ARGUMENT. Internal allocations report NO_MEMORY; by-value argument construction may throw before entry. Publication uses options.editMode and requires the original revision, including after validator reentry. IMMEDIATE is the default; semantic rejection retains the accepted candidate without a model set. Invoke Action::ACTIVATE for the same programmatic confirmation as Enter, in every mode. History owns bounded text/selection snapshots; accepted edits and restorations precede validator callbacks. Default Ctrl+Z/Ctrl+Y/Ctrl+Shift+Z chords are configurable; reserved router keys and Undo/Redo overlap reject bind. Read-only accepts explicit programmatic text changes but blocks user typing/deletion/cut/paste and Undo/Redo. User clear is also blocked by read-only/disabled eligibility; programmatic text mutation remains unchanged. PASSWORD/NO_ECHO consume Ctrl+C/X without service access or outcomes. Ctrl+V and paste remain writable inputs. Escape adopts latest. Shift+arrows/Home/End select; Ctrl+A selects all. Cut changes draft only after a successful service write, then applies the same publication policy as input and fluent edits. Paste rejects invalid UTF-8, CR/LF/U+2028/U+2029 and whole over-limit edits. Other controls remain logical data displayed as safe renderer placeholders.

◆ bindLineEditWithEvents()

std::expected< LineEditBinding, TreeError > portals::bindLineEditWithEvents ( WidgetTree & tree,
EventRouter & router,
Node< LineEdit > node,
std::shared_ptr< Property< std::string > > model,
std::function< void(LineEditResult)> result,
std::shared_ptr< Clipboard > clipboard,
std::function< bool(std::string_view)> validate,
LineEditEvents events )

Bind a one-line editor and adopt its initial model on UI outside frames.

Parameters
treeBorrowed UI owner, outliving binding and model.
routerBorrowed router for this tree, outliving binding.
nodeObserving editor handle; one action registration is allowed per node.
modelRequired shared model owner. External values must satisfy editor text limits.
resultRequired owning callback, invoked before typed events for editing/confirmation operations; may remove node/ancestors or destroy the binding. Successful commits stay committed if this callback throws.
clipboardOptional shared UI service for Ctrl+C/X/V; absence reports CLIPBOARD_FAILED.
validateOptional publication predicate borrowing an owned candidate only during its call. False preserves draft with VALIDATION_FAILED; exceptions report FAILED/CALLBACK_FAILED.
Returns
Owning binding or delegated tree/router/property error; invalid initial text is INVALID_ARGUMENT. Internal allocations report NO_MEMORY; by-value argument construction may throw before entry. Publication uses options.editMode and requires the original revision, including after validator reentry. IMMEDIATE is the default; semantic rejection retains the accepted candidate without a model set. Invoke Action::ACTIVATE for the same programmatic confirmation as Enter, in every mode. History owns bounded text/selection snapshots; accepted edits and restorations precede validator callbacks. Default Ctrl+Z/Ctrl+Y/Ctrl+Shift+Z chords are configurable; reserved router keys and Undo/Redo overlap reject bind. Read-only accepts explicit programmatic text changes but blocks user typing/deletion/cut/paste and Undo/Redo. User clear is also blocked by read-only/disabled eligibility; programmatic text mutation remains unchanged. PASSWORD/NO_ECHO consume Ctrl+C/X without service access or outcomes. Ctrl+V and paste remain writable inputs. Escape adopts latest. Shift+arrows/Home/End select; Ctrl+A selects all. Cut changes draft only after a successful service write, then applies the same publication policy as input and fluent edits. Paste rejects invalid UTF-8, CR/LF/U+2028/U+2029 and whole over-limit edits. Other controls remain logical data displayed as safe renderer placeholders.
Parameters
eventsTyped observations delivered after the legacy result; no borrowed widget text survives callbacks.

◆ bindPassword()

std::expected< PasswordBinding, PasswordFailure > portals::bindPassword ( WidgetTree & tree,
EventRouter & router,
Node< Password > node,
std::shared_ptr< Property< PasswordValue > > model,
std::function< void(PasswordResult)> onResult,
std::shared_ptr< Clipboard > clipboard = {},
std::function< bool(SecretView)> validate = {} )

Bind and securely inspect the initial model before publishing presentation.

Parameters
treeBorrowed UI owner, outliving binding and model.
routerBorrowed router for tree, outliving binding.
nodeLive protected editor; one action binding per node is permitted.
modelShared protected model owner; external replacements are checked before input.
onResultRequired owning UI callback; may remove this node or binding.
clipboardOptional shared service, called only with explicit ENABLED paste policy.
validateOptional owning semantic validator, borrowing plaintext synchronously; false retains the draft.
Returns
Scoped binding or original typed setup failure. Exceptions translate to TreeError without messages.

◆ bindRadioGroup()

std::expected< RadioGroupBinding, TreeError > portals::bindRadioGroup ( WidgetTree & tree,
EventRouter & router,
Node< RadioGroup > node,
std::shared_ptr< Property< RadioGroupValue > > model,
std::function< void(RadioGroupResult)> changed )
Parameters
treeBorrowed live UI tree.
routerExisting router, no additional runtime.
nodeLive group without another binding.
modelAuthoritative coherent state.
changedRequired callback receiving the exact commit/delivery receipt, including failures.
Returns
Owning registration or original admission/allocation/tree error. Failed admission leaves no registration.

◆ bindScrollArea() [1/2]

std::expected< ActionBinding, TreeError > portals::bindScrollArea ( EventRouter & router,
WidgetTree & tree,
Node< ScrollArea > node )
Parameters
routerExisting router that must outlive the binding and its admitted calls.
treeSame borrowed tree as router; UI-only, outside dispatch/frame.
nodeLive area; initializes its lease if needed.
Returns
Scoped binding or typed initialization/router error. A failed bind releases only the lease acquired by this call. No native capability or mouse mode is enabled.

◆ bindScrollArea() [2/2]

std::expected< ActionBinding, TreeError > portals::bindScrollArea ( EventRouter & router,
WidgetTree & tree,
Node< ScrollArea > node,
ScrollRepeatServices services )
Parameters
routerExisting input owner.
treeSame UI tree.
nodeLive area.
servicesExisting scheduler/clock/error services, retained until node retirement.
Returns
Scoped binding with automatic arrow hold and eligible fractional transitions, or typed admission error. The overload without services keeps immediate movement and click-only arrow buttons.

◆ bindScrollBar() [1/2]

std::expected< ActionBinding, TreeError > portals::bindScrollBar ( EventRouter & router,
WidgetTree & tree,
Node< ScrollBar > node,
bool geometryWriter = true )
Parameters
routerExisting router, outliving the binding/admitted calls.
treeSame UI tree as router.
nodeLive standalone bar.
geometryWriterInitialization role; false shares an area's controller metrics.
Returns
Scoped binding or typed error, with the same rollback and capability rules as bindScrollArea.

◆ bindScrollBar() [2/2]

std::expected< ActionBinding, TreeError > portals::bindScrollBar ( EventRouter & router,
WidgetTree & tree,
Node< ScrollBar > node,
ScrollRepeatServices services,
bool geometryWriter = true )
Parameters
routerExisting input owner.
treeSame UI tree.
nodeLive bar.
servicesExisting scheduler/clock/error services.
geometryWriterExisting metrics role.
Returns
Scoped binding supporting held arrows and eligible fractional transitions, or typed error. The overload without services keeps immediate movement and click-only arrow buttons.

◆ bindSlider()

std::expected< SliderBinding, TreeError > portals::bindSlider ( WidgetTree & tree,
EventRouter & router,
Node< Slider > node,
std::shared_ptr< Property< NumericValue > > model,
std::function< void(SliderResult)> changed,
std::function< void(const SliderOperationEvent &)> finished = {} )
Parameters
treeBorrowed UI tree, required to outlive the binding and model.
routerBorrowed router for this tree, required to outlive the binding.
nodeLive slider receiving input and synchronized presentation.
modelRequired shared owner of an invariant-preserving numeric Property.
changedRequired exact user-commit observation; external writes and no-ops never invoke it.
finishedOptional owning operation observation, once per completed/cancelled/conflicted gesture.
Returns
Scoped native binding or existing tree/router/model admission/allocation errors. Callbacks may remove their node or destroy the token. Removal suppresses subsequent delivery. Callback construction before entry can throw. Notification rejection never rolls back a model commit.

◆ bindSpinBox()

std::expected< SpinBoxBinding, TreeError > portals::bindSpinBox ( WidgetTree & tree,
EventRouter & router,
Node< LineEdit > editor,
Node< Button > decrease,
Node< Button > increase,
std::shared_ptr< Property< NumericValue > > model,
std::uint64_t pageSteps,
std::function< void(SpinBoxResult)> result,
LineEditEvents events = {} )

Bind pre-mounted editor/decrement/increment children of one SpinBox.

Parameters
treeBorrowed UI tree outliving the binding.
routerBorrowed matching router.
editorThe single ordinary editor.
decreaseNonfocusable plain decrement button.
increaseNonfocusable plain increment button.
modelRequired authoritative numeric source.
pageStepsPositive number of increments per PageUp/PageDown.
resultRequired owning result observer; callbacks may remove nodes or destroy the binding.
eventsExisting typed text and confirmation observations.
Returns
Scoped binding or the original typed admission/allocation error.

◆ bindVirtualList()

template<class T>
std::expected< ActionBinding, TreeError > portals::bindVirtualList ( EventRouter & router,
WidgetTree & tree,
Node< VirtualList< T > > node )

Bind arrows/Home/End, left press and integral wheel scrolling to the existing router. Caller retains the scoped binding. Tree/router outlive it; no widget pointer escapes dispatch.

Template Parameters
TImmutable domain row type, as defined by VirtualList.
Parameters
routerExisting UI router; no additional queue or focus system is created.
treeThe same borrowed tree used by router; it must outlive the registration.
nodeChecked list observer to register as focusable.
Returns
Owning disconnect token, or the router's registration/affinity/lifetime error.
Note
Handled actions invalidate paint. Pending selection is resolved only by preparation.

◆ bindVirtualTable()

template<class T>
std::expected< ActionBinding, TreeError > portals::bindVirtualTable ( EventRouter & router,
WidgetTree & tree,
Node< VirtualTable< T > > node )

Bind arrows/Home/End, left press and integral wheel scrolling to the existing router. Caller retains the scoped binding. Tree/router outlive it; no widget pointer escapes dispatch.

Template Parameters
TImmutable domain row type, as defined by VirtualTable.
Parameters
routerExisting UI router; no additional queue or focus system is created.
treeThe same borrowed tree used by router; it must outlive the registration.
nodeChecked table observer to register as focusable.
Returns
Owning disconnect token, or the router's registration/affinity/lifetime error.
Note
Handled actions invalidate paint. Pending selection is resolved only by preparation.

◆ catppuccinLatteTheme()

StyleSheet portals::catppuccinLatteTheme ( )
Returns
Typed light Catppuccin Latte palette adapted from Textual through ThemeTokens; may allocate.

◆ cellFormat()

template<class T>
CellFormat< T > portals::cellFormat ( std::format_string< const T & > pattern,
WidthPolicy policy = {} )

Build a reusable column formatter without a formatting lambda.

Template Parameters
TStandard-formattable field type borrowed as const T &.
Parameters
patternCompile-time checked format specification for that field type.
policyCaptured width policy matching the table.
Returns
Owning CellFormat<T>; copying its pattern may allocate.

◆ clearLog()

std::expected< void, TreeError > portals::clearLog ( WidgetTree & tree,
Node< LogView > node )
Parameters
treeUI owner with managed preparation.
nodeManaged initialized live log.
Returns
Success or tree error; clears records/counters, preserves ID history, resumes following.

◆ columnOptions()

std::expected< TableColumnOptions, TextError > portals::columnOptions ( ColumnId id,
std::string_view header,
std::int32_t width = 1,
WidthPolicy policy = {} )
inline

Construct typed metadata from UTF-8 without unchecked header extraction.

Parameters
idExplicit nonzero stable column identity; validation remains with the table.
headerUTF-8 bytes borrowed only for this call, copied on success.
widthColumn width in cells; validated by the existing table preparation.
policyDisplay policy matching the receiving table.
Returns
Owning column options or the unchanged header TextError.
Exceptions
std::bad_allocIf independent text storage cannot be allocated.

◆ copyDocumentBytes()

std::expected< std::shared_ptr< const DocumentCopy >, DocumentError > portals::copyDocumentBytes ( std::shared_ptr< ByteDocumentSource > source,
DocumentByteRange range,
std::size_t maxBytes = 64 * 1024,
std::stop_token stop = {} )
Parameters
sourceRetained worker source.
rangeExplicit range or known complete extent.
maxBytesPositive output ceiling; default64KiB, independent of source size.
stopCooperative cancellation.
Returns
Immutable owning bytes charged to the source budget, or typed failure. A range exceeding maxBytes is rejected before payload reads. An unknown open-ended range is unsupported; use an explicit range or streaming export. OS clipboard limits and delivery are the host's policy; this function does not write to the clipboard.

◆ dataPhase()

std::expected< DataPhase, TreeError > portals::dataPhase ( DataRangeStatus status)
constexpr
Parameters
statusPrepared owning facts.
Returns
Mapped phase, or INVALID_ARGUMENT for an unknown readiness enum.

◆ documentLanguageFromName()

DocumentLanguage portals::documentLanguageFromName ( std::string_view name)
noexcept

Resolve supported ASCII names without allocating.

Parameters
nameCase-insensitive plain/text, sql/postgresql/postgres, mysql or markdown/md name.
Returns
Explicit lexical profile; any unknown name resolves to PLAIN.

◆ documentViewStatus()

std::expected< DocumentViewStatus, TreeError > portals::documentViewStatus ( WidgetTree & tree,
Node< DocumentView > node )
Parameters
treeUI owner outside frames.
nodeLive managed viewer.
Returns
Owning status or exact tree/affinity error; never reports errors or invalidates.

◆ editReceiptMatches()

bool portals::editReceiptMatches ( const EditTarget & target,
const EditReceipt & receipt )
noexcept

Exact qualification; this does not prove a backend applied its precondition.

Parameters
targetOriginal owning request qualification.
receiptDelivered backend acknowledgement.
Returns
True only when every original target component matches.

◆ encodeDiff()

std::expected< std::string, DiffError > portals::encodeDiff ( const CellBuffer * previous,
const CellBuffer & next,
std::size_t max_bytes = 1024 *1024,
ColorMode colorMode = ColorMode::TRUE_COLOR )
nodiscard

Encode changed complete rows into one owning VT transaction.

Parameters
previousBorrowed last completed frame, or null for a complete repaint.
nextBorrowed desired frame; no view is retained or invalidated.
max_bytesMaximum encoded bytes, including control sequences.
colorModeFixed output palette. Use the same mode for previous and next; changing mode requires previous=nullptr. ANSI16 uses the conventional RGB palette; a terminal may customize its physical palette.
Returns
Owning bytes, empty for semantically unchanged frames, or explicit failure.

Any thread with stable inputs; no I/O. IDs are never compared across buffers. Size/policy changes force a clear and complete repaint. The surface must match the terminal viewport. The owner supplies a UTF-8 VT terminal in ground parser state, with no concurrent writers and matching width policy. Transactions establish replacement mode, full scrolling region, absolute origin, and disabled autowrap; finish at home with default SGR and wrap on. The owner is responsible for restoring these modes on exit. This is not a general parser recovery sequence. Full output starts with CAN, which aborts incomplete CSI/UTF-8 on supported terminals after the old transport is quiescent. Recovery covers only prefixes emitted by this encoder, never arbitrary OSC/DCS.

◆ ensureVirtualListVisible()

template<class T>
std::expected< RowLookup, TreeError > portals::ensureVirtualListVisible ( WidgetTree & tree,
Node< VirtualList< T > > node,
const ModelFrame< T > & frame,
RowId id )

Reveal a stable row using a caller-supplied shared pin and the last prepared viewport.

Template Parameters
TImmutable row type satisfying VirtualList's provider contract.
Parameters
treeBorrowed UI owner, outside its frame.
nodeChecked non-owning view observer.
framePin of the same model, used for identity and bounds; prepare this pin before painting.
idFull stable row identity; selection is unchanged.
Returns
Explicit FOUND/NOT_FOUND/UNSUPPORTED, or frame lookup/tree error; WOULD_BLOCK before preparation.
Note
FOUND invalidates paint and cancels prior work. Zero body height cannot reveal a row; a row taller than a nonempty viewport is revealed at its leading cell. The caller retains dispatch responsibility for the next prepareVirtualList result.

◆ ensureVirtualTableVisible()

template<class T>
std::expected< RowLookup, TreeError > portals::ensureVirtualTableVisible ( WidgetTree & tree,
Node< VirtualTable< T > > node,
const ModelFrame< T > & frame,
RowId id )

Reveal a stable row using a caller-supplied shared pin and the last prepared viewport.

Template Parameters
TImmutable row type satisfying VirtualTable's provider contract.
Parameters
treeBorrowed UI owner, outside its frame.
nodeChecked non-owning view observer.
framePin of the same model, used for identity and bounds; prepare this pin before painting.
idFull stable row identity; selection is unchanged.
Returns
Explicit FOUND/NOT_FOUND/UNSUPPORTED, or frame lookup/tree error; WOULD_BLOCK before preparation.
Note
FOUND invalidates paint and cancels prior work. Zero body height cannot reveal a row; a row taller than a nonempty viewport is revealed at its leading cell. The caller retains dispatch responsibility for the next prepareVirtualTable result.

◆ exportDiagnostics()

std::string portals::exportDiagnostics ( const DiagnosticSnapshot & snapshot)

Serialize metadata in memory; performs no stream/file/terminal I/O.

Parameters
snapshotOwning bounded snapshot obtained outside frame hooks.
Returns
Versioned human-readable text. Allocation failures propagate to the caller.

◆ exportDocument()

DocumentExportResult portals::exportDocument ( std::shared_ptr< ByteDocumentSource > source,
std::shared_ptr< DocumentExportSink > sink,
DocumentByteRange range = {},
DocumentExportOptions options = {},
std::stop_token stop = {} )
Parameters
sourceRetained logical source; no view or UI object is retained.
sinkOwning worker-safe output policy.
rangeOriginal logical-byte range, default through EOF.
optionsBounded worker read quantum.
stopCooperative read/write cancellation.
Returns
Exact progress and source/sink outcome, including any preserved partial output. Worker-only. Source revision/range are fixed at start and revalidated after the final write. Gzip sources export decompressed bytes; text keeps its original encoding. No implicit clipboard or full-output buffer is created. A changed Viewer model cannot redirect the retained source. A nonzero start with unknown extent is validated by a one-byte preceding probe; that case requires seekability. The sink is finalized even if validation fails.

◆ followLogTail()

std::expected< void, TreeError > portals::followLogTail ( WidgetTree & tree,
Node< LogView > node )
Parameters
treeUI owner with managed preparation.
nodeManaged initialized live log.
Returns
Success or tree error; resumes following on the next ordinary prepared frame.

◆ formatHexRow()

std::expected< HexRowResult, HexError > portals::formatHexRow ( std::span< const std::byte > input,
std::uint64_t absoluteOffset,
HexRowOptions options,
std::span< char > text,
std::span< HexByteCell > cells )
nodiscardnoexcept

Format at most one row, padding absent byte slots with spaces. Input, text, and cells must not overlap. Input is not retained or modified; output remains in caller-owned buffers and is valid for their lifetime. Every output character is printable ASCII. No terminator is appended. The caller must account for the output capacity before calling. Errors write nothing.

Parameters
inputSource bytes; excess beyond one row remains unconsumed.
absoluteOffsetAbsolute offset of the first source byte.
optionsRow formatting parameters.
textCaller-owned text output with at least hexRowWidth(options) elements.
cellsCaller-owned output with at least the consumed byte count elements.
Returns
Counts of consumed bytes and written columns, or a typed error.

◆ formatText() [1/2]

template<class... Args>
std::expected< GraphemeText, TextError > portals::formatText ( std::format_string< Args... > pattern,
Args &&... args )

Format checked text under the default display policy.

Template Parameters
ArgsTypes accepted by the standard compile-time checked format string.
Parameters
patternStandard format string checked against Args.
argsValues borrowed only for this call; no references are retained.
Returns
Owning text or its unchanged validation error.
Exceptions
std::bad_allocIf formatting or validation storage allocation fails.
std::format_errorIf a custom formatter fails.

◆ formatText() [2/2]

template<class... Args>
std::expected< GraphemeText, TextError > portals::formatText ( WidthPolicy policy,
std::format_string< Args... > pattern,
Args &&... args )

Format and validate an owning text value with an explicit width policy.

Template Parameters
ArgsArgument types accepted by the compile-time checked standard format string.
Parameters
policyDisplay policy captured by the returned text; use the receiving view's policy.
patternStandard format string, checked against Args at compilation.
argsValues borrowed only during this synchronous call.
Returns
Independent validated text or the original TextError, without replacement characters.
Exceptions
std::bad_allocIf formatting or text storage cannot be allocated.
std::format_errorIf a user-defined formatter fails.

◆ graphemes()

std::expected< TextSegments, TreeError > portals::graphemes ( const GraphemeText & input,
TextSplitOptions options = {} )

Return one token for every existing extended grapheme, including whitespace.

Parameters
inputValidated owning input borrowed only during the call.
optionsWhole input bounds and positive token cap.
Returns
Independent immutable input owner and bounded ranges, or the same errors as words.

◆ gruvboxTheme()

StyleSheet portals::gruvboxTheme ( )
Returns
Typed Gruvbox palette adapted from Textual through ThemeTokens; may allocate.

◆ hexRowWidth()

std::expected< std::size_t, HexError > portals::hexRowWidth ( HexRowOptions options)
nodiscardnoexcept

Calculate the complete width of a row for layout and auto-fit decisions.

Parameters
optionsRow formatting parameters.
Returns
Required character count or INVALID_OPTIONS.

◆ i18n()

TextValue portals::i18n ( std::string_view key)
nodiscardconstexpr

Copy a resource key for later resolution through an explicit caller.

Parameters
keyOpaque resource key borrowed only during this call; empty keys are permitted.
Returns
Owning expression that resolves the key anew on every resolve call.
Exceptions
std::bad_allocIf key storage cannot be allocated.
std::length_errorIf key storage exceeds implementation limits.

◆ initializeScrollArea()

std::expected< void, TreeError > portals::initializeScrollArea ( WidgetTree & tree,
Node< ScrollArea > node )
Parameters
treeBorrowed UI owner, between frames.
nodeLive area; repeated initialization preserves its existing lease and position.
Returns
Success, existing tree/controller error, INVALID_ARGUMENT for a second metrics writer, or NO_MEMORY without partial initialization. No input binding or content node is created.

◆ initializeScrollBar()

std::expected< void, TreeError > portals::initializeScrollBar ( WidgetTree & tree,
Node< ScrollBar > node,
bool geometryWriter = true )
Parameters
treeBorrowed UI owner, between frames.
nodeLive standalone projection.
geometryWriterTrue for sole standalone metrics ownership; false projects an area.
Returns
Success or existing tree/controller error; repeating a different writer role is INVALID_ARGUMENT.

◆ isDataPending()

bool portals::isDataPending ( DataPhase phase)
constexprnoexcept
Parameters
phasePresentation to inspect.
Returns
True only for LOADING or REFRESHING, including false for unknown enums.

◆ keyPressed() [1/3]

bool portals::keyPressed ( const InputEvent & event,
InputKey key )
constexprnoexcept

Match a semantic key press or repeat without extracting the event variant.

Parameters
eventBorrowed input event, never retained or consumed.
keySemantic key identity; CHARACTER does not compare its Unicode scalar.
Returns
True for matching PRESS/REPEAT; false for RELEASE or a non-key event. Modifiers are ignored by this overload. Use the exact-modifier overload for shortcuts. This pure predicate allocates nothing and adds no routing, focus or held-key state.

◆ keyPressed() [2/3]

bool portals::keyPressed ( const InputEvent & event,
InputKey key,
InputModifiers modifiers )
constexprnoexcept

Match a semantic press/repeat with the complete modifier combination.

Parameters
eventBorrowed input event, never retained or consumed.
keySemantic identity; use KeyEvent::scalar separately for CHARACTER keys.
modifiersExact required modifiers, including false fields.
Returns
True for a matching PRESS/REPEAT and exact modifiers; false otherwise. No allocation, event consumption, routing or physical held-key tracking is performed.

◆ keyPressed() [3/3]

bool portals::keyPressed ( const InputEvent & event,
std::initializer_list< InputKey > keys )
constexprnoexcept

Match any listed semantic key on press/repeat, ignoring modifiers.

Parameters
eventBorrowed input event, never retained or consumed.
keysKey alternatives borrowed for this call; an empty list never matches.
Returns
True for PRESS/REPEAT of a listed key; false for RELEASE or non-key input. The list requires no heap allocation; matching is linear in its size. CHARACTER compares identity only, not its scalar. No routing state is introduced.

◆ layoutTree()

std::expected< void, TreeError > portals::layoutTree ( WidgetTree & tree,
Node< Widget > node,
CellRect local,
CellRect viewport )

Measure and arrange a subtree inside an active tree frame.

Ownership and frame lifetime
The tree owns all widgets. Inspection results, size policies, measurements and placements are local owning values. A preliminary pass may capture geometry without painting. For final output, perform layout, paint and rendering within the same frame so borrowed render commands remain valid.
Traversal
Hidden subtrees are skipped; disabled widgets still participate. A plain widget without a Layout implementation can pass its viewport to at most one child. This function does not open a frame, perform I/O, edit models or retain a second tree.
Precondition
Call on the tree's UI thread inside WidgetTree::frame. Request Invalidation::LAYOUT between frames when changing geometry.
Failure handling
Discard the pass on failure; partially arranged geometry must not be rendered. Tree errors propagate unchanged. Arithmetic failures return TreeError::INVALID_GEOMETRY, allocation failures return TreeError::NO_MEMORY, and reentrant passes return TreeError::WOULD_BLOCK.
Parameters
treeTree borrowed on its UI owner inside an active frame.
nodeRoot of the subtree to measure and arrange.
localRoot placement relative to its parent; descendants receive parent-local rectangles.
viewportSurface-cell clip applied to the whole pass.
Returns
Success when all participating geometry is valid, or an error requiring the caller to discard this pass.

◆ loadNavigationCheckpoint()

std::expected< NavigationCheckpoint, NavigationCheckpointError > portals::loadNavigationCheckpoint ( NavigationCheckpointStorage & storage,
NavigationCheckpointOptions options = {},
std::stop_token stop = {} )
Parameters
storageExplicit caller-owned storage.
optionsBounded read/parse capacities.
stopCooperative cancellation.
Returns
New staged checkpoint; no current state is replaced.

◆ logNavigation()

std::expected< LogNavigation, SourceError > portals::logNavigation ( WidgetTree & tree,
Node< LogView > node )
Parameters
treeUI owner outside frames.
nodeMounted external-source log.
Returns
Weak scene-owned session handle for checked status/export or explicit view reuse.

◆ logStatus()

std::expected< LogStatus, TreeError > portals::logStatus ( WidgetTree & tree,
Node< LogView > node )
Parameters
treeUI owner with managed preparation.
nodeManaged initialized live log.
Returns
Owning counters or exact tree/frame/affinity failure, without reporting or invalidation.

◆ make_error_code()

std::error_code portals::make_error_code ( GzipError error)
noexcept
Parameters
errorTyped gzip content or resource-limit cause.
Returns
Stable std::error_code retaining the gzip category and value.

◆ makeBackgroundJob()

template<class Input, class Output, class Work>
requires std::is_nothrow_move_constructible_v<Work>
std::expected< std::unique_ptr< BackgroundJob >, BackgroundError > portals::makeBackgroundJob ( std::shared_ptr< const Input > input,
AsyncReply< Output > reply,
Work work )

Prepare owning immutable work without running it on the caller's UI thread.

Template Parameters
InputTransitively immutable input with worker-safe ownership/deletion.
OutputTransitively immutable result; may itself contain expected<DomainValue, DomainError>.
WorkNothrow-movable worker-safe callable accepting const Input& and stop_token, returning shared_ptr<const Output> or expected<shared_ptr<const Output>, AsyncError>. Captures must not contain UI objects or coroutine storage.
Parameters
inputNon-null immutable input owner; mutable aliases must not change it.
replyWorker-safe endpoint registered by the existing UI awaiter before admission.
workOwning callable invoked once after admission; exceptions use existing async classifications.
Returns
Prepared item, INVALID_ARGUMENT for null input, or NO_MEMORY for adapter allocation. Caller argument construction can throw before this boundary.

◆ matchShortcut()

std::optional< KeyEvent > portals::matchShortcut ( const Shortcut & shortcut,
const InputEvent & event,
ShortcutBehavior behavior = {} )
noexcept
Parameters
shortcutBorrowed validated alternatives; never retained or mutated.
eventBorrowed input event. ASCII letters fold case, with every modifier compared exactly.
behaviorPRESS-only default; repeat requires explicit opt-in.
Returns
Original KeyEvent value, or a PRESS CHARACTER value preserving modified text scalar/modifiers. Unmodified text matches only an explicitly registered character shortcut; other text passes through. This stateless predicate checks single chords only; ManagedScene executes sequences.

◆ modernTheme()

StyleSheet portals::modernTheme ( )
Returns
Typed Modern theme, equivalent to themes/modern.pss; may allocate.

◆ navigateVirtualRows()

template<class T>
std::expected< void, TreeError > portals::navigateVirtualRows ( WidgetTree & tree,
Node< VirtualRows< T > > node,
SourceAnchor anchor,
SourceDirection direction = SourceDirection::FORWARD )

Request a capability-gated native row/tail/cursor operation.

Template Parameters
TDomain row.
Parameters
treeUI owner.
nodeLive host.
anchorExact source operation.
directionExisting provider traversal direction.
Returns
Admission or explicit unsupported/participation failure.

◆ nordTheme()

StyleSheet portals::nordTheme ( )
Returns
Typed Nord palette adapted from Textual through ThemeTokens; may allocate.

◆ notifyVirtualRowsReady()

template<class T>
std::expected< void, TreeError > portals::notifyVirtualRowsReady ( WidgetTree & tree,
Node< VirtualRows< T > > node,
std::uint64_t revision )

Publish a native provider readiness revision through the existing source notifier.

Template Parameters
TDomain row.
Parameters
treeUI owner.
nodeLive host.
revisionPositive strictly newer revision.
Returns
Queue admission or checked protocol/lifetime failure; sourceError retains the exact protocol error.

◆ openNativeApplicationTerminal() [1/3]

std::expected< std::unique_ptr< ApplicationTerminal >, TerminalError > portals::openNativeApplicationTerminal ( NativeTerminalHandles handles,
TerminalOptions options,
std::chrono::milliseconds modeTimeout,
bool mouseReporting,
NativeScreenMode screen,
bool buttonMotion )
nodiscard

Open the native transport with an explicit session button-motion requirement.

Parameters
handlesBorrowed native handles, duplicated by the session.
optionsPositive bounded native resource limits.
modeTimeoutPositive independent setup/cleanup I/O budget in milliseconds.
mouseReportingFalse disables mouse protocol setup and pointer capture regardless of buttonMotion.
screenManaged main or alternate screen policy, as in the original overload.
buttonMotionOpt into POSIX 1002 and native held-button motion/release capability for this session. Late-mounted controls cannot activate another mode; hosts must explicitly cancel lost sequences.
Returns
Owning adapter or the original typed setup/cleanup error. Capability is published only after setup. On POSIX, known active initial 1016 returns INPUT_PROTOCOL with INITIAL_PIXEL_CONTEXT_UNKNOWN before mouse encoding/tracking changes.
Exceptions
std::bad_allocAllocation failure; acquired native state receives best-effort cleanup.

◆ openNativeApplicationTerminal() [2/3]

std::expected< std::unique_ptr< ApplicationTerminal >, TerminalError > portals::openNativeApplicationTerminal ( NativeTerminalHandles handles,
TerminalOptions options,
std::chrono::milliseconds modeTimeout,
bool mouseReporting,
NativeScreenMode screen,
bool buttonMotion,
NativePointerOptions pointer )
nodiscard

Open a native session with optional precise pointer negotiation.

Parameters
handlesExclusively borrowed native terminal handles.
optionsExisting bounded I/O policy.
modeTimeoutPositive setup/restoration budget; optional probes reserve legacy setup time.
mouseReportingWhether managed mouse reporting is enabled.
screenExisting managed-screen policy.
buttonMotionWhether the scene needs button motion and release.
pointerAdvanced AUTO/OFF and explicit FIFO host declaration; unconfirmed hosts use cells. On POSIX, every mouse-enabled startup requires an initial cell context. Known active 1016 returns INPUT_PROTOCOL with INITIAL_PIXEL_CONTEXT_UNKNOWN before encoding/tracking changes, including OFF and hosts without a FIFO declaration. Disabling mouse reporting skips these mode queries and does not classify pre-existing foreign mouse input.
Returns
Owning adapter or a typed setup/cleanup error. Optional unsupported precision falls back successfully.
Exceptions
std::bad_allocAllocation failure; acquired state receives best-effort cleanup.

◆ openNativeApplicationTerminal() [3/3]

std::expected< std::unique_ptr< ApplicationTerminal >, TerminalError > portals::openNativeApplicationTerminal ( NativeTerminalHandles handles,
TerminalOptions options = {},
std::chrono::milliseconds modeTimeout = std::chrono::milliseconds{2000},
bool mouseReporting = true,
NativeScreenMode screen = NativeScreenMode::ALTERNATE_SCREEN )
nodiscard

Open an exclusive native transport with managed screen and optional mouse reporting.

POSIX setup queries coordinate encodings and saves xterm tracking modes before enabling SGR button reports. Windows uses native mouse records and sends no mouse setup bytes.

Successful setup preserves non-query input for the first read; failed setup consumes already read input and returns no replay adapter. Replies are matched by mode/status, not authenticated. The adapter requires the steady-clock epoch and exclusive terminal I/O.

Close gives retryable output drain and final managed screen/mouse restoration separate fresh I/O budgets, then closes the OS session. Joining uncertain Windows I/O can exceed the drain budget; the restoration budget starts after that join. These budgets do not bound total close duration. Its noexcept destructor performs best effort.

XTSAVE overwrites one-level tracking/visibility caches; confirmed DECSC capture overwrites saved cursor state. Nested screen owners, previously saved caches and competing mode changes are unsupported. Setup/cleanup bypass frame byte statistics.

Parameters
handlesBorrowed native input/output handles, duplicated by TerminalSession.
optionsPositive resource limits, including retained non-query startup input bytes.
modeTimeoutPositive I/O budget for startup, shutdown drain and final restoration, applied separately in milliseconds. It does not bound a native worker join or total shutdown duration.
mouseReportingEnable managed POSIX mouse modes; false skips only mouse setup I/O.
screenALTERNATE_SCREEN preserves the caller's main screen/cursor/rendition; MAIN_SCREEN paints it directly. Alternate screen ownership starts on the main screen and is not nestable. POSIX saved cursor-visibility storage and DEC cursor-save state are borrowed exclusively; their previous saved caches are not preserved. Window resize keeps the new geometry; the host reflows/crops primary content and adjusts the saved cursor. Startup/cleanup require compatible VT1049 support. Cleanup cancels and joins any uncertain Windows write before sending its final restoration batch, then restores OS modes even if that output fails. Broken/stalled hosts and abrupt process death can prevent screen restoration.
Returns
Owning adapter, or setup error with cleanup failure in restoration_code. Unsupported/missing queries, input pressure, and incomplete restoration remain explicit errors. On POSIX, known active initial 1016 returns INPUT_PROTOCOL with INITIAL_PIXEL_CONTEXT_UNKNOWN before mouse encoding/tracking changes.
Exceptions
std::bad_allocIf allocation fails; acquired native/screen/mouse state receives best-effort cleanup.

◆ pageVirtualRows()

template<class T>
std::expected< void, TreeError > portals::pageVirtualRows ( WidgetTree & tree,
Node< VirtualRows< T > > node,
bool backwards = false )

Navigate one bounded delivered page, preserving unknown source extent.

Template Parameters
TDomain row type.
Parameters
treeUI owner.
nodeLive host.
backwardsRequest backward traversal.
Returns
Admission or an explicit unsupported/lifetime/participation failure.

◆ parsePss()

std::expected< StyleSheet, StyleError > portals::parsePss ( std::string_view source)

Parse strict PSS v0 without I/O or mutation, on any thread.

Parameters
sourceBorrowed UTF-8 source; identifiers and grammar are ASCII, copied on success.
Returns
Complete owned sheet or precise error; no partial sheet escapes. Allocation failure is NO_MEMORY.

◆ parsePssDocument()

std::expected< PssDocument, PssError > portals::parsePssDocument ( std::string_view bytes,
std::string_view sourceName = {} )

Parse strict UTF-8 PSS v0 into owning declarations and source metadata, without I/O.

Parameters
bytesBorrowed input, at most MAX_PSS_BYTES; permits one leading UTF-8 BOM, rejects NUL.
sourceNameBorrowed UTF-8 identity copied on success, at most MAX_PSS_SOURCE_NAME_BYTES.
Returns
Complete owning document or an owning error; no partial result is published. Logical payload includes all repeated declaration origins and is bounded by MAX_PSS_DOCUMENT_BYTES. File/scene integration is separate. Allocation and checked transfer failures map to ALLOCATION/NO_MEMORY.

◆ parseShortcut()

std::expected< Shortcut, ShortcutError > portals::parseShortcut ( std::string_view source,
ShortcutOptions options = {} )
Parameters
sourceBorrowed for this call only; ASCII names ignore case and surrounding ASCII whitespace.
optionsPositive finite byte/alternative/stroke budgets.
Returns
Owned alternatives or a typed byte offset. Plus joins modifiers and keys, pipe joins alternatives. Plus-separated keys share all modifiers of their segment; comma starts independent modifiers. Proper-prefix alternatives and unmodified Escape after the first stroke are rejected. No physical modifier identity or AltGr interpretation is inferred.

◆ positionReplyMatches()

bool portals::positionReplyMatches ( const PositionRequest & request,
const PositionReply & reply )
noexcept
Parameters
requestStill-current navigation request.
replyCompleted provider receipt.
Returns
True when resource, session, target revision and request generation all match. This does not validate provider-specific position semantics or apply any UI state.

◆ prepareChart() [1/2]

template<class T>
std::expected< std::optional< ModelRequest< T > >, TreeError > portals::prepareChart ( WidgetTree & tree,
Node< Chart< T > > node,
const ModelFrame< T > & frame,
CellSize viewport,
std::uint64_t first = 0 )

Prepare at most one domain bucket per viewport column between frames. Shares the caller's ModelFrame with sibling tables. Returns new pending-range work once; the caller dispatches that token, then pins again after scheduler delivery. No workers start here. Invalid OHLC ordering/nonfinite fields become gaps; provider pending/error states produce a blank plot.

Template Parameters
TImmutable provider row type, borrowed by the chart's accessor.
Parameters
treeUI tree owning the node; must not be inside a frame.
nodeChecked observing chart handle.
frameSame model's immutable pin; a foreign consumer fails before provider/accessor calls.
viewportFinal local nonnegative cell extent; resize requires preparation again.
firstFirst domain row, clamped to rowCount; no full model scan or implicit downsampling.
Returns
New request or empty optional, or tree/model/validation/callback/allocation error. Failed staging preserves the old presentation. Reentrant preparation is WOULD_BLOCK.

◆ prepareChart() [2/2]

template<class T, class Geometry>
requires std::same_as<Geometry, LayoutSnapshot>
std::expected< std::optional< ModelRequest< T > >, TreeError > portals::prepareChart ( WidgetTree & tree,
Node< Chart< T > > node,
const ModelFrame< T > & frame,
const Geometry & layout,
std::uint64_t first = 0 )

Prepare a chart using its captured local layout extent.

Template Parameters
TImmutable row type accepted by the chart's OHLC accessor.
GeometryDeduced LayoutSnapshot; deduction preserves existing braced CellSize calls.
Parameters
treeBorrowed UI owner; call outside its frame.
nodeChecked observing chart handle from this tree.
frameShared model pin retained across all sibling preparations and layout retries.
layoutOwning geometry captured for this preparation pass; hidden ancestors yield zero size.
firstZero-based first logical bucket, clamped by the existing chart preparation.
Returns
New optional provider request, a snapshot identity error, or the original preparation error.
Note
Zero size cancels prior chart work. Caller owns provider dispatch; no new runtime is created.

◆ prepareScrollArea()

std::expected< void, TreeError > portals::prepareScrollArea ( WidgetTree & tree,
Node< ScrollArea > node,
const ScrollAreaLayoutSnapshot & layout )
Parameters
treeBorrowed UI owner, between frames.
nodeInitialized area that originally produced layout.
layoutOwning observation from one completed pass; capture all sibling observations first.
Returns
Success or existing checked error. Hidden areas preserve values; visible zero clamps to zero. Adopts metrics atomically, cancels drag on track/metrics changes and invalidates LAYOUT if needed. This explicit path is replaced by automatic managed preparation in a later integration slice.

◆ prepareScrollAreas()

std::expected< ScrollPreparationResult, TreeError > portals::prepareScrollAreas ( WidgetTree & tree,
std::span< const Node< ScrollArea > > areas,
const LayoutSnapshot & snapshot,
std::optional< ScrollRevealTarget > reveal = {} )

Prepare all ordinary scroll areas against one immutable geometry profile.

Parameters
treeLive UI tree, between frames and outside callbacks that mutate this same registration set.
areasInitialized unique area identities; order does not affect nested reveal.
snapshotGEOMETRY profile captured after the complete preliminary layout, before invalidations.
revealOptional pending one-shot target; readOnly does not prohibit this programmatic reveal.
Returns
Adoption result or checked tree/identity/geometry/allocation/overflow error. Hidden areas preserve values; visible zero viewports clamp. All allocations and plan validation precede publication. A later invalidation error reports already published effects honestly. Custom scenes consume a request only after successful final layout/paint/render, never merely on this function's success. Eligibility/removal history changed since capture returns WOULD_BLOCK without publishing metrics or offsets. Exhausted input-history identity returns IDENTITY_EXHAUSTED for this checked geometry adoption only; focus-generation exhaustion is separate and still permits explicit reveal.
Note
Uses existing controller arithmetic and tree invalidation, without callbacks, timers or a second loop.

◆ prepareVirtualList() [1/2]

template<class T>
std::expected< std::optional< ModelRequest< T > >, TreeError > portals::prepareVirtualList ( WidgetTree & tree,
Node< VirtualList< T > > node,
const ModelFrame< T > & frame,
CellSize viewport )

Prepare a local final viewport between frames, using the same pin as every sibling view. Returns a new request exactly once for caller dispatch. No worker is started. A rejected completion can be retried on that token; cancel it if dispatch fails, then prepare again for a new receipt. Hidden ancestors cancel work and release prepared rows. Failure leaves the previous presentation intact. Tree affinity/frame errors, invalid dimensions/ranges, NO_MEMORY and CALLBACK_FAILED are explicit.

Template Parameters
TImmutable domain row type satisfying VirtualList's provider/delegate contract.
Parameters
treeUI owner; borrowed only for this call, no calls during its frame.
nodeChecked observer of the list to prepare.
frameOne shared application pin; the view retains an owning copy on success.
viewportFinal local size from the application's layout constraints, in nonnegative cells.
Returns
Empty optional when no new dispatch is needed, an owning request receipt, or TreeError.
Note
A changed presentation invalidates paint; an unchanged preparation is a no-op. Exact viewport mismatch at paint returns INVALID_GEOMETRY. Snapshot/delegate failures leave old frame, rows and IDs together; retry may cancel prior work.

◆ prepareVirtualList() [2/2]

template<class T, class Geometry>
requires std::same_as<Geometry, LayoutSnapshot>
std::expected< std::optional< ModelRequest< T > >, TreeError > portals::prepareVirtualList ( WidgetTree & tree,
Node< VirtualList< T > > node,
const ModelFrame< T > & frame,
const Geometry & layout )

Prepare a list using its captured local layout extent.

Template Parameters
TImmutable row type satisfying VirtualList's provider and delegate contract.
GeometryDeduced LayoutSnapshot; deduction preserves existing braced CellSize calls.
Parameters
treeBorrowed UI owner; call outside its frame.
nodeChecked observing list handle from this tree.
frameShared model pin retained across all sibling preparations and layout retries.
layoutOwning geometry captured for this preparation pass; never consults live geometry.
Returns
New optional provider request, a snapshot identity error, or the original preparation error.
Note
Hidden ancestors retain the existing cancellation behavior. Caller dispatches requests; do not dispatch the scheduler or repin between sibling preparations.

◆ prepareVirtualTable() [1/2]

template<class T>
std::expected< std::optional< ModelRequest< T > >, TreeError > portals::prepareVirtualTable ( WidgetTree & tree,
Node< VirtualTable< T > > node,
const ModelFrame< T > & frame,
CellSize viewport )

Prepare a local final viewport between frames, using the same pin as every sibling view. Returns a new request exactly once for caller dispatch. No worker is started. A rejected completion can be retried on that token; cancel it if dispatch fails, then prepare again for a new receipt. Hidden ancestors cancel work and release prepared rows. Failure leaves the previous presentation intact. The viewport includes the fixed one-cell header. Exceeded row/cell/text budgets return INVALID_ARGUMENT. Tree affinity/frame errors, invalid dimensions/ranges, NO_MEMORY and CALLBACK_FAILED are explicit.

Template Parameters
TImmutable domain row type satisfying VirtualTable's provider/delegate contract.
Parameters
treeUI owner; borrowed only for this call, no calls during its frame.
nodeChecked observer of the table to prepare.
frameOne shared application pin; the view retains an owning copy on success.
viewportFinal local size from the application's layout constraints, in nonnegative cells.
Returns
Empty optional when no new dispatch is needed, an owning request receipt, or TreeError.
Note
A changed presentation invalidates paint; an unchanged preparation is a no-op. Exact viewport mismatch at paint returns INVALID_GEOMETRY. Snapshot/delegate failures leave old frame, rows and IDs together; retry may cancel prior work.

◆ prepareVirtualTable() [2/2]

template<class T, class Geometry>
requires std::same_as<Geometry, LayoutSnapshot>
std::expected< std::optional< ModelRequest< T > >, TreeError > portals::prepareVirtualTable ( WidgetTree & tree,
Node< VirtualTable< T > > node,
const ModelFrame< T > & frame,
const Geometry & layout )

Prepare a table using its captured local layout extent, including its header.

Template Parameters
TImmutable row type satisfying VirtualTable's provider and column contract.
GeometryDeduced LayoutSnapshot; deduction preserves existing braced CellSize calls.
Parameters
treeBorrowed UI owner; call outside its frame.
nodeChecked observing table handle from this tree.
frameShared model pin retained across all sibling preparations and layout retries.
layoutOwning geometry captured for this preparation pass; survives sibling invalidation.
Returns
New optional provider request, a snapshot identity error, or the original preparation error.
Note
Hidden ancestors retain the existing cancellation behavior. This overload neither pins nor starts provider work; the explicit CellSize overload remains available.

◆ refreshDocument()

std::expected< void, SourceError > portals::refreshDocument ( WidgetTree & tree,
Node< DocumentView > node )
Parameters
treeUI owner outside frames.
nodeLive managed viewer.
Returns
Deferred metadata/read refresh admission, preserving the byte anchor.

◆ renderFullFrame()

std::expected< CellBuffer, RenderError > portals::renderFullFrame ( CellSize size,
std::span< const RenderCommand > commands,
WidthPolicy policy = {},
RenderLimits limits = {} )
nodiscard

Render a deterministic fresh frame, independent of diff/damage/output code.

Parameters
sizeOwning cell extents; negative components normalize to zero.
commandsScene borrowed only during this synchronous call, with its text.
policyComplete owning width policy; every text run must match, even offscreen.
limitsOwning scene/work/buffer caps; rejection never truncates a scene.
Returns
An independent buffer owning all display bytes/styles, or explicit failure.

Any thread may call with stable input; there is no I/O, global state, callback or terminal affinity. Concurrent calls on unchanged input are safe. The call never mutates or invalidates inputs and retains no borrow. Buffer view invalidation follows CellBuffer. Allocation failures become errors. The caller owns frame scheduling and layout/paint invalidation, including width-policy changes.

Text advances by whole measured graphemes using wide arithmetic. New glyphs are placed only when their complete footprint fits clip and surface. Touching an old wide continuation clears its lead as well, possibly outside the new clip, to preserve complete clusters. Fill has the same atomic old-cluster cleanup rule.

◆ resolveGridPlacements()

std::expected< GridPlacementPlan, TreeError > portals::resolveGridPlacements ( const DeclarativeGridOptions & options,
std::span< const GridItemOptions > items )

Resolve sparse placement without factories, tree access or retained input views.

Parameters
optionsCounts, direction, gaps and finite work budgets, borrowed only for this call.
itemsComplete structural order, including hidden children; explicit rectangles reserve first.
Returns
Owning origins or INVALID_ARGUMENT for conflicts/bounds, NODE_LIMIT for budgets, INVALID_GEOMETRY for arithmetic overflow, or NO_MEMORY. Automatic search never returns to skipped holes.

◆ resolveStyle()

ComputedStyle portals::resolveStyle ( const StyleSheet & sheet,
const StyleTarget & target,
ComputedStyle defaults = {},
bool readOnly = false )
noexcept

Resolve one subject through the same engine used by typed and PSS installation.

Parameters
sheetValid rules (nonnegative minWidth, at most MAX_STYLE_RULES); immutable during this call. This metadata-only preview ignores a sheet node scope; the owning engine checks scope against live NodeId.
targetBorrowed matching metadata; no data are retained.
defaultsOwning built-in/custom widget defaults beneath all matching declarations.
readOnlyOrthogonal view-only fact; engines read the live widget instead of retaining this flag.
Returns
Complete owning style, or unchanged defaults for invalid ancestor metadata. No allocation, I/O or thread affinity; caller owns input stability. validateStyleTarget provides typed diagnostics.

◆ retryVirtualList()

template<class T>
std::expected< void, TreeError > portals::retryVirtualList ( WidgetTree & tree,
Node< VirtualList< T > > node )

Explicitly retry a provider error/pending range at the next preparation; no worker is started.

Template Parameters
TImmutable domain row type, as defined by VirtualList.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked list observer.
Returns
Success or a tree affinity, lifetime, frame or invalidation error.
Note
Cancels the previous request and invalidates paint; preparation returns a fresh receipt.

◆ retryVirtualTable()

template<class T>
std::expected< void, TreeError > portals::retryVirtualTable ( WidgetTree & tree,
Node< VirtualTable< T > > node )

Explicitly retry a provider error/pending range at the next preparation; no worker is started.

Template Parameters
TImmutable domain row type, as defined by VirtualTable.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked table observer.
Returns
Success or a tree affinity, lifetime, frame or invalidation error.
Note
Cancels the previous request and invalidates paint; preparation returns a fresh receipt.

◆ saveNavigationCheckpoint()

std::expected< void, NavigationCheckpointError > portals::saveNavigationCheckpoint ( const NavigationCheckpoint & checkpoint,
NavigationCheckpointStorage & storage,
std::stop_token stop = {} )
Parameters
checkpointExisting immutable value.
storageExplicit caller-owned storage.
stopCooperative cancellation.
Returns
Storage result; checkpoint remains unchanged on every path.

◆ scrollAreaLayout()

std::expected< ScrollAreaLayoutSnapshot, TreeError > portals::scrollAreaLayout ( WidgetTree & tree,
Node< ScrollArea > node )
Parameters
treeBorrowed UI owner; capture after successful complete layout, before invalidation.
nodeLive initialized area.
Returns
Owning observation, including effective hidden state; or checked tree/geometry error. Does not publish controller values or invalidate. This is the explicit low-level capture path.

◆ scrollFractionalThumb()

std::expected< ScrollFractionalThumb, TreeError > portals::scrollFractionalThumb ( ScrollAxisMetrics metrics,
ScrollOffset offset,
std::int32_t trackLength,
std::int32_t minimumThumb = 1 )
nodiscardconstexprnoexcept

Map an exact logical position to eighth-cell thumb placement.

Parameters
metricsOwning logical range; every uint64 extent/viewport is supported.
offsetExact raster plus finite remainder in [0,1), clamped to the range.
trackLengthNonnegative trimmed track length, in cells.
minimumThumbPositive minimum thumb length, in cells, capped by the track.
Returns
Exact quantized interval, or INVALID_ARGUMENT for invalid geometry/remainder.
Note
Any thread; constexpr bounded integer work, no allocation or mutation. Integral API is unchanged.

◆ scrollOffsetForThumb()

std::expected< std::uint64_t, TreeError > portals::scrollOffsetForThumb ( std::int64_t position,
std::int32_t travel,
std::uint64_t maximum )
nodiscardconstexprnoexcept

Inverse thumb mapping, rounded to nearest integer with ties toward the start.

Parameters
positionSigned intended thumb-start cell, clamped into [0,travel].
travelNonnegative maximum thumb-start cell; zero returns position zero.
maximumInclusive exact logical maximum, including UINT64_MAX.
Returns
Exact logical offset, or INVALID_ARGUMENT for negative travel.
Note
Endpoints are exact; any thread, constexpr, bounded work and no invalidation.

◆ scrollPageStep()

std::uint64_t portals::scrollPageStep ( std::uint64_t viewport,
std::uint64_t overlap = 1 )
nodiscardconstexprnoexcept

Compute one page movement using guarded unsigned subtraction.

Parameters
viewportLogical visible cells; zero means movement is unavailable.
overlapCells shared by consecutive pages, including values greater than viewport.
Returns
Zero for an empty viewport; otherwise max(viewport-overlap,1).

◆ scrollRange()

ScrollRange portals::scrollRange ( ScrollAxisMetrics metrics)
nodiscardconstexprnoexcept

Compute an exact range without unsigned subtraction or addition overflow.

Parameters
metricsOwning logical extent and viewport; every uint64 value is supported.
Returns
Inclusive maximum and count=maximum+1; zero viewport produces {0,1}.
Note
Any thread; constexpr, allocation-free, no mutation or invalidation.

◆ scrollThumb()

std::expected< ScrollThumb, TreeError > portals::scrollThumb ( ScrollAxisMetrics metrics,
std::uint64_t offset,
std::int32_t trackLength,
std::int32_t minimumThumb = 1 )
nodiscardconstexprnoexcept

Map exact logical position to a thumb without a floating-point index round trip.

Parameters
metricsLogical range; every uint64 extent/viewport is supported.
offsetIntended integral position, clamped to the viewport-start range.
trackLengthNonnegative number of track cells.
minimumThumbPositive minimum occupied cells, capped by the track length.
Returns
Owning geometry, or INVALID_ARGUMENT for negative length/nonpositive minimum.
Note
Any thread; constexpr and bounded integer work, with no allocation or invalidation.

◆ scrollVirtualList()

template<class T>
std::expected< void, TreeError > portals::scrollVirtualList ( WidgetTree & tree,
Node< VirtualList< T > > node,
double rows )

Accumulate fractional wheel input on UI using the last prepared model count.

Template Parameters
TImmutable row type satisfying VirtualList's provider contract.
Parameters
treeBorrowed UI owner, outside its frame.
nodeChecked non-owning view observer.
rowsFinite signed movement in logical rows, positive toward the end.
Returns
Success, WOULD_BLOCK before preparation, INVALID_ARGUMENT for nonfinite movement, or tree error.
Note
Only raster changes invalidate paint/cancel range work; fractional changes require no preparation.

◆ scrollVirtualRows()

template<class T>
std::expected< void, TreeError > portals::scrollVirtualRows ( WidgetTree & tree,
Node< VirtualRows< T > > node,
std::int64_t rows )

Accumulate a relative row intent without replacing it with a stale committed position.

Template Parameters
TDomain row.
Parameters
treeUI owner.
nodeLive host.
rowsSigned logical row steps.
Returns
Admission or typed capacity, capability, lifetime or editor-participation failure.

◆ scrollVirtualTable()

template<class T>
std::expected< void, TreeError > portals::scrollVirtualTable ( WidgetTree & tree,
Node< VirtualTable< T > > node,
double rows )

Accumulate fractional wheel input on UI using the last prepared model count.

Template Parameters
TImmutable row type satisfying VirtualTable's provider contract.
Parameters
treeBorrowed UI owner, outside its frame.
nodeChecked non-owning view observer.
rowsFinite signed movement in logical rows, positive toward the end.
Returns
Success, WOULD_BLOCK before preparation, INVALID_ARGUMENT for nonfinite movement, or tree error.
Note
Only raster changes invalidate paint/cancel range work; fractional changes require no preparation.

◆ seekDocumentByte()

std::expected< void, SourceError > portals::seekDocumentByte ( WidgetTree & tree,
Node< DocumentView > node,
std::uint64_t offset )
Parameters
treeUI owner outside frames.
nodeLive managed viewer.
offsetOriginal byte anchor.
Returns
Deferred seek admission; no source I/O or decoder work is performed.

◆ seekLogByte()

std::expected< void, SourceError > portals::seekLogByte ( WidgetTree & tree,
Node< LogView > node,
std::uint64_t byteOffset )
Parameters
treeUI owner outside frames.
nodeMounted file-source log.
byteOffsetOriginal byte position of a record's first byte in the current file generation.
Returns
Deferred bounded seek admission or UNSUPPORTED for other source families.

◆ seekLogRow()

std::expected< void, SourceError > portals::seekLogRow ( WidgetTree & tree,
Node< LogView > node,
std::uint64_t ordinal )
Parameters
treeUI owner outside frames.
nodeMounted finite-source log.
ordinalExact logical record position, in [0,rowCount()).
Returns
Deferred bounded seek admission or UNSUPPORTED for non-finite sources; no identity lookup is required.

◆ setBorderTitle()

std::expected< void, TreeError > portals::setBorderTitle ( WidgetTree & tree,
Node< Border > node,
const GraphemeText & title )

Replace a frame title through the existing checked tree mutation boundary.

Parameters
treeBorrowed UI owner, between frames.
nodeLive passive frame, without changing its size policy or title decoration.
titleValidated text borrowed only during this call, using this frame's width policy.
Returns
Checked boundary/text/capacity error without changing the old title, or success. Preparation precedes paint invalidation and publication; equal bytes request no redraw. Title text is clipped to the current allocation and never enlarges intrinsic frame width.

◆ setControlStyle()

std::expected< void, TreeError > portals::setControlStyle ( WidgetTree & tree,
Node< Control > node,
ControlStyle style )

Replace owning paint values on UI between frames; equal is a no-op, changes invalidate paint.

Parameters
treeBorrowed UI owner containing node; used only during this call.
nodeObserving handle to the control whose appearances are replaced.
styleOwning replacement paint values; does not affect behavior or layout metrics.
Returns
Success or the tree's WRONG_THREAD, WRONG_SESSION, STALE_NODE, closed, WOULD_BLOCK (active frame), CALLBACK_FAILED or invalidation error. Rejection leaves the stored style unchanged.

◆ setControlText()

std::expected< void, TreeError > portals::setControlText ( WidgetTree & tree,
Node< Control > node,
GraphemeText text )

Replace owning text between frames; equal bytes/policy are a no-op, changes invalidate layout.

Parameters
treeBorrowed UI owner containing node; used only during this call.
nodeObserving handle to the control whose text is replaced.
textValidated owning replacement, transferred only after decorations are prepared and invalidation succeeds.
Returns
Success, internal NO_MEMORY, or the tree's WRONG_THREAD, WRONG_SESSION, STALE_NODE, closed, WOULD_BLOCK (active frame), CALLBACK_FAILED or invalidation error. Failure retains the previous text.
Exceptions
std::bad_allocIf construction of the by-value argument fails before this function begins; allocation inside the mutation boundary is returned as NO_MEMORY instead. Numeric-only Slider views reject caption mutation with INVALID_ARGUMENT, including through a base node.

◆ setDataStateView()

std::expected< void, TreeError > portals::setDataStateView ( WidgetTree & tree,
Node< DataStateView > node,
DataPresentation value )
Parameters
treeBorrowed UI owner.
nodeLive configured own-value composite.
valueOwning nonzero-generation state; older values are no-ops after affinity/liveness checks.
Returns
Success, original tree/NO_MEMORY error, or INVALID_ARGUMENT for invalid/bound/automatic modes. Changes stage owning text before visual publication. Mutations inside a frame are WOULD_BLOCK.

◆ setDeclarativeGridOptions()

std::expected< void, TreeError > portals::setDeclarativeGridOptions ( WidgetTree & tree,
Node< Grid > node,
const GridOptions & options )

Atomically replace resolved declarative settings between frames on the UI owner.

Parameters
treeOwning tree, borrowed for checked access and layout invalidation.
nodeDeclarative grid; an explicit grid returns INVALID_ARGUMENT without changing mode.
optionsComplete owning replacement; overlap is rejected and full identities remain authoritative.
Returns
Success, or validation/access/allocation error with old settings retained before publication. Input is borrowed only during this call. Layout callbacks cannot call this setter.

◆ setDocumentEncoding()

std::expected< void, ManagedError > portals::setDocumentEncoding ( ManagedScene & scene,
Node< DocumentView > node,
DocumentEncoding encoding )
Parameters
sceneUI owner.
nodeLive viewer.
encodingExplicit encoding selection.
Returns
Deferred reflow admission preserving the original byte anchor.

◆ setDocumentLineNumbers()

std::expected< void, ManagedError > portals::setDocumentLineNumbers ( ManagedScene & scene,
Node< DocumentView > node,
bool enabled )
Parameters
sceneUI owner.
nodeLive viewer.
enabledShow proven logical line numbers.
Returns
Deferred reflow admission preserving the original byte anchor.

◆ setDocumentModel()

std::expected< void, ManagedError > portals::setDocumentModel ( ManagedScene & scene,
Node< DocumentView > node,
ui::DocumentSource source )
Parameters
sceneUI owner outside frames.
nodeLive managed viewer.
sourceCold owning binding.
Returns
Checked atomic replacement admission; old binding survives a rejected descriptor.

◆ setDocumentWrap()

std::expected< void, ManagedError > portals::setDocumentWrap ( ManagedScene & scene,
Node< DocumentView > node,
bool enabled )
Parameters
sceneUI owner.
nodeLive viewer.
enabledWrap ordinary complete graphemes.
Returns
Deferred reflow admission preserving the original byte anchor.

◆ setFormFieldValidation()

std::expected< void, TreeError > portals::setFormFieldValidation ( WidgetTree & tree,
Node< FormField > node,
FieldValidation value )
Parameters
treeExisting UI tree, borrowed only during this call.
nodeLive field identity.
valueOwning explicit presentation; this is not an asynchronous completion endpoint.
Returns
Success after updating readable text, or the original tree/text/allocation failure. Pending never changes editor eligibility. Invalid UTF-8 is rejected before the old presentation changes.

◆ setGaugeValue()

std::expected< void, TreeError > portals::setGaugeValue ( WidgetTree & tree,
Node< Gauge > node,
double value )
Parameters
treeBorrowed UI owner; mutation is allowed only between frames.
nodeLive gauge belonging to tree.
valueFinite replacement in the inclusive configured range.
Returns
Checked boundary/value error, or success; equal values request no redraw, other changes invalidate PAINT.

◆ setGridOptions()

std::expected< void, TreeError > portals::setGridOptions ( WidgetTree & tree,
Node< Grid > node,
const GridOptions & options )

Validate and atomically copy settings on the UI owner between frames, then invalidate layout. Tree errors propagate; invalid configuration leaves the previous settings unchanged. Input is borrowed only for this call. Allocation failure returns NO_MEMORY.

Parameters
treeOwning tree, borrowed for the UI-only update.
nodeChecked observer of the grid being updated.
optionsComplete replacement configuration; borrowed only while making an independent copy.
Returns
Success after replacement and layout invalidation, or a validation/access/allocation error.

◆ setGridPresentation()

std::expected< void, TreeError > portals::setGridPresentation ( WidgetTree & tree,
Node< Grid > node,
const GridPresentation & presentation )

Replace owning backgrounds between frames on the UI owner.

Parameters
treeOwning tree borrowed for this checked update.
nodeGrid receiving backgrounds.
presentationComplete replacement with positive paint budget; borrowed only during this call.
Returns
Success or access/validation error; equal values request no extra paint.

◆ setLinearOptions()

std::expected< void, TreeError > portals::setLinearOptions ( WidgetTree & tree,
Node< LinearLayout > node,
LinearOptions options )

Validate, edit and invalidate layout between frames on the tree's UI owner; tree errors propagate.

Parameters
treeOwning UI tree, borrowed for this call.
nodeChecked observer of the Row or Column to update.
optionsReplacement gap, padding and alignment settings.
Returns
Success after requesting layout, or an error without replacing the previous settings.

◆ setLogModel()

std::expected< void, ManagedError > portals::setLogModel ( ManagedScene & scene,
Node< LogView > node,
ui::LogSource source )
Parameters
sceneUI owner outside frames.
nodeLive managed log, including rolling mode.
sourceOwning deferred provider, file or finite-model descriptor.
Returns
Atomic binding admission preserving the old binding on failure; never reports checked errors. Successful admission clears old prepared content and cursors while preserving node/style/focus. Returning resources restore their scene-owned reading checkpoint and independent follow mode; first visits use the configured initial policy. Same unchanged descriptors are a no-op. Unsupported or unavailable restoration is recoverable and preserves the saved bookmark. Later read errors belong to the new binding. Work remains on the existing application executor.

◆ setOverlayOptions()

std::expected< void, TreeError > portals::setOverlayOptions ( WidgetTree & tree,
Node< Overlay > node,
OverlayOptions options )

Validate and replace settings on the UI owner between frames, then invalidate layout.

Parameters
treeOwning tree, borrowed for the UI-only update.
nodeChecked observer of the overlay being updated.
optionsReplacement padding and alignment, copied by value.
Returns
Success after replacement and layout invalidation, or a validation/access error with old settings retained.

◆ setScrollbarSkin()

std::expected< void, TreeError > portals::setScrollbarSkin ( WidgetTree & tree,
Node< Widget > node,
const ScrollbarSkin & skin )
nodiscard

Atomically prepare owning scrollbar glyphs between frames on the tree UI thread.

Parameters
treeOwning tree, borrowed for the checked mutation.
nodeLive ScrollArea or ScrollBar; no controller/lease/focus identity is replaced.
skinOwning source borrowed only for this call; prepared glyphs are copied before publication.
Returns
Success after PAINT invalidation; INVALID_ARGUMENT for invalid type/preset/glyph/cap, NO_MEMORY for allocation failure, WOULD_BLOCK during a frame or nested skin replacement, and existing tree errors. Failure preserves the prior skin. No geometry or offset changes occur.

◆ setScrollMetrics()

std::expected< void, TreeError > portals::setScrollMetrics ( WidgetTree & tree,
Node< ScrollBar > node,
ScrollAxisMetrics metrics )
Parameters
treeBorrowed UI owner, between frames.
nodeInitialized bar holding the sole standalone geometry writer lease.
metricsOwning exact extent/viewport for this bar's axis; the other axis is preserved.
Returns
Success or checked error; a non-writer projection returns INVALID_ARGUMENT.

◆ setScrollOffset()

std::expected< void, TreeError > portals::setScrollOffset ( WidgetTree & tree,
Node< Widget > node,
ScrollAxis axis,
ScrollOffset offset )
Parameters
treeBorrowed UI owner, between frames.
nodeInitialized area or bar of this tree.
axisExact selected axis; invalid values are INVALID_ARGUMENT.
offsetExact integral/fractional intended position, clamped to the current range.
Returns
Success or checked error. Read-only user policy does not restrict this command. Fraction-only changes invalidate PAINT; raster changes invalidate tree-wide LAYOUT. Equal offsets are idle.

◆ setSizePolicy()

std::expected< void, TreeError > portals::setSizePolicy ( WidgetTree & tree,
Node< SizedWidget > node,
SizePolicy policy )

Validate and edit policies between frames on the tree's UI owner; tree errors propagate. Changed policies invalidate layout; equal policies preserve geometry. The installed style minimum is a hard bound and a conflicting maximum rejects the update without changing the previous policy.

Parameters
treeOwning UI tree, borrowed for this call.
nodeChecked observer of the SizedWidget to update.
policyReplacement width/height constraints; invalid values are rejected before mutation.
Returns
Success after requesting layout, or the validation/access/invalidation error.

◆ setSliderReadOnly()

std::expected< void, TreeError > portals::setSliderReadOnly ( WidgetTree & tree,
Node< Slider > node,
bool readOnly )
Parameters
treeBorrowed UI tree.
nodeLive slider.
readOnlyNew user-mutation policy.
Returns
Checked tree result; equal settings do not invalidate. Programmatic writes remain allowed.

◆ setSpinner()

std::expected< void, TreeError > portals::setSpinner ( WidgetTree & tree,
Node< Spinner > node,
const SpinnerOptions & options,
SpinnerLabelResolver resolver = {} )
Parameters
treeBorrowed receiving UI tree.
nodeChecked live indicator identity.
optionsOwning replacement; all text is staged before replacing state/cancelling the old timer.
resolverOptional synchronous localization adapter, not retained after validation.
Returns
Success, NO_MEMORY, INVALID_ARGUMENT, or original tree error; no partial publication on failure. The next ordinary preparation starts one fresh interval, with frame zero and no elapsed-time catch-up.

◆ setSpinnerActive()

std::expected< void, TreeError > portals::setSpinnerActive ( WidgetTree & tree,
Node< Spinner > node,
bool active )
Parameters
treeBorrowed receiving UI tree.
nodeChecked live indicator identity.
activeWhether animation should run after ordinary preparation; stopping cancels its token immediately.
Returns
Checked mutation/invalidation result; retains the bounded current frame and allocates no owning sequence.

◆ setVirtualListFirst()

template<class T>
std::expected< void, TreeError > portals::setVirtualListFirst ( WidgetTree & tree,
Node< VirtualList< T > > node,
std::uint64_t first )

Change the integral first row on UI and invalidate paint; prepare before painting again.

Template Parameters
TImmutable domain row type, as defined by VirtualList.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked list observer; does not convey ownership.
firstRequested position; preparation clamps it to the last row, or zero for an empty model.
Returns
Success or the tree's affinity, lifetime, frame or invalidation error.
Note
Cancels old work and navigation intent, but preserves the selected RowId.

◆ setVirtualListOptions()

template<class T>
std::expected< void, TreeError > portals::setVirtualListOptions ( WidgetTree & tree,
Node< VirtualList< T > > node,
VirtualListOptions options )

Validate settings on UI, invalidate layout and require preparation before the next paint.

Template Parameters
TImmutable domain row type, as defined by VirtualList.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked list observer.
optionsOwning replacement settings; row_height must be positive.
Returns
Success, INVALID_ARGUMENT for a nonpositive height, or a tree error.
Note
The model's range budget is checked later by preparation; overscan is never silently capped.

◆ setVirtualListSelection()

template<class T>
std::expected< void, TreeError > portals::setVirtualListSelection ( WidgetTree & tree,
Node< VirtualList< T > > node,
std::optional< RowId > selected )

Set stable selection on UI, clear pending navigation, and invalidate paint.

Template Parameters
TImmutable domain row type, as defined by VirtualList.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked list observer.
selectedOwning stable ID, or nullopt to clear; an ID need not be currently visible.
Returns
Success, INVALID_ARGUMENT for a zero ID component, or a tree error.
Note
No model lookup or loading occurs; removed IDs remain selected until explicitly cleared.

◆ setVirtualRowsAutoRowHeight() [1/2]

template<class T>
std::expected< void, ManagedError > portals::setVirtualRowsAutoRowHeight ( ManagedScene & scene,
Node< VirtualRows< T > > node,
bool enabled )

Checked managed facade for natural row sizing.

Template Parameters
TDomain row.
Parameters
sceneUI owner.
nodeMounted host.
enabledOpt into natural height.
Returns
Managed error or admitted settings.

◆ setVirtualRowsAutoRowHeight() [2/2]

template<class T>
std::expected< void, TreeError > portals::setVirtualRowsAutoRowHeight ( WidgetTree & tree,
Node< VirtualRows< T > > node,
bool enabled )

Select bounded natural row sizing without changing fixed-height defaults.

Template Parameters
TDomain row.
Parameters
treeUI owner.
nodeLive row host.
enabledTrue for measured compositions, false for configured rowHeight.
Returns
Checked admission; failure retains the previous sizing mode and window.

◆ setVirtualRowsFirst()

template<class T>
std::expected< void, TreeError > portals::setVirtualRowsFirst ( WidgetTree & tree,
Node< VirtualRows< T > > node,
std::uint64_t first )

Request a finite ordinal; mounting occurs at the existing managed service boundary.

Template Parameters
TDomain row type.
Parameters
treeUI owner.
nodeLive row host.
firstRequested finite row ordinal, clamped at source end.
Returns
Admission or checked lifetime, capability, editor-participation or allocation failure.

◆ setVirtualTableColumns()

template<class T>
std::expected< void, TreeError > portals::setVirtualTableColumns ( WidgetTree & tree,
Node< VirtualTable< T > > node,
std::span< const TableColumn< std::type_identity_t< T > > > columns )

Replace ordered column definitions transactionally and invalidate layout.

Template Parameters
TImmutable domain row type borrowed by TableColumn formatters.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked table observer.
columnsBorrowed definitions copied on success; unique nonzero IDs, positive widths and matching policies required.
Returns
Success; INVALID_ARGUMENT for invalid columns/budgets, NO_MEMORY, CALLBACK_FAILED on capture copy failure, or a tree affinity/lifetime/frame error.
Note
The span is not retained. Validation/copy failure preserves the previous configuration and presentation.

◆ setVirtualTableFirst()

template<class T>
std::expected< void, TreeError > portals::setVirtualTableFirst ( WidgetTree & tree,
Node< VirtualTable< T > > node,
std::uint64_t first )

Change the integral first row on UI and invalidate paint; prepare before painting again.

Template Parameters
TImmutable domain row type, as defined by VirtualTable.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked table observer; does not convey ownership.
firstRequested position; preparation clamps it to the last row, or zero for an empty model.
Returns
Success or the tree's affinity, lifetime, frame or invalidation error.
Note
Cancels old work and navigation intent, but preserves the selected RowId.

◆ setVirtualTableOptions()

template<class T>
std::expected< void, TreeError > portals::setVirtualTableOptions ( WidgetTree & tree,
Node< VirtualTable< T > > node,
VirtualTableOptions options )

Validate settings on UI, invalidate layout and require preparation before the next paint.

Template Parameters
TImmutable domain row type, as defined by VirtualTable.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked table observer.
optionsOwning replacement settings; height and budgets must be positive and existing headers must match the policy.
Returns
Success, INVALID_ARGUMENT for invalid settings or incompatible existing columns, or a tree error.
Note
The model's range budget is checked later by preparation; overscan is never silently capped.

◆ setVirtualTableSelection()

template<class T>
std::expected< void, TreeError > portals::setVirtualTableSelection ( WidgetTree & tree,
Node< VirtualTable< T > > node,
std::optional< RowId > selected )

Set stable selection on UI, clear pending navigation, and invalidate paint.

Template Parameters
TImmutable domain row type, as defined by VirtualTable.
Parameters
treeBorrowed UI owner; mutation inside a frame is rejected.
nodeChecked table observer.
selectedOwning stable ID, or nullopt to clear; an ID need not be currently visible.
Returns
Success, INVALID_ARGUMENT for a zero ID component, or a tree error.
Note
No model lookup or loading occurs; removed IDs remain selected until explicitly cleared.

◆ solveScrollLayout()

std::expected< ScrollAreaGeometry, TreeError > portals::solveScrollLayout ( CellSize allocation,
ScrollExtent extent,
ScrollLayoutOptions options = {} )
nodiscardconstexprnoexcept

Solve both bar policies together without cross-frame oscillation.

Parameters
allocationSigned local allocation, normalized to nonnegative cell extents.
extentFixed logical intrinsic content size; independent of gutters and offsets.
optionsOwning policies and optional one-cell frame selection.
Returns
Placement, or INVALID_ARGUMENT for unknown policies/placement, ON_FRAME without a frame, or a possible ON_FRAME bar whose bottom/right side is absent.
Note
Reserved AUTO uses a monotone least fixed point with at most two additions. Any thread; constexpr, no allocation, callbacks, tree operations, mutation or invalidation.

◆ spinnerPreset()

SpinnerPreset portals::spinnerPreset ( std::string_view name)
inlinenoexcept
Parameters
namePreset name, ASCII case-insensitive; hyphens and underscores are equivalent.
Returns
Matching preset, or an invalid value collected by ordinary configuration validation.

◆ syncBorder() [1/2]

std::expected< void, TreeError > portals::syncBorder ( WidgetTree & tree,
Node< Border > node )
Parameters
treeBorrowed UI owner, between frames.
nodeLive frame whose input eligibility is copied for disabled presentation; focus projection is cleared.
Returns
Tree boundary error or success; unchanged presentation requests no redraw.

◆ syncBorder() [2/2]

std::expected< void, TreeError > portals::syncBorder ( WidgetTree & tree,
Node< Border > node,
Node< Widget > focused )
Parameters
treeBorrowed UI owner; synchronization is allowed only between frames.
nodeLive frame receiving disabled/focused/normal presentation without becoming a focus target.
focusedEmpty observer, this frame, or another live node in tree; descendants project focused appearance.
Returns
Checked boundary/identity error without mutation, or success; only changed appearance invalidates PAINT. Disabled presentation takes precedence over focus. The focus observer is borrowed only during this call.

◆ syncControl()

std::expected< void, TreeError > portals::syncControl ( WidgetTree & tree,
Node< Control > node,
Node< Widget > focused )

Copy focus and ancestor eligibility on UI between frames; changes invalidate paint.

Parameters
treeBorrowed UI owner containing node; also supplies ancestor eligibility.
nodeObserving control handle receiving the presentation snapshot.
focusedObserving snapshot obtained once from EventRouter::focused before synchronizing the controls; an empty handle means no focused control. This identity is compared, not dereferenced or made authoritative.
Returns
Success or the tree's WRONG_THREAD, WRONG_SESSION, STALE_NODE, closed, WOULD_BLOCK (active frame), CALLBACK_FAILED or invalidation error. Equal presentation flags do not invalidate.
Note
No focus recovery, registration or routing is performed; never call router.focused from paint.

◆ syncGauge()

std::expected< void, TreeError > portals::syncGauge ( WidgetTree & tree,
Node< Gauge > node )
Parameters
treeBorrowed UI owner, between frames.
nodeLive gauge whose own and ancestor input eligibility is copied for disabled presentation.
Returns
Tree boundary error or success; unchanged eligibility requests no redraw.

◆ syncRadioGroup()

std::expected< void, TreeError > portals::syncRadioGroup ( WidgetTree & tree,
Node< RadioGroup > node,
Node< Widget > focused )
Parameters
treeBorrowed UI owner.
nodeLive group.
focusedCurrent router focus.
Returns
Eligibility/focus paint synchronization or original tree error.

◆ syncScrollControl()

std::expected< void, TreeError > portals::syncScrollControl ( WidgetTree & tree,
Node< Widget > node,
Node< Widget > focused = {} )
Parameters
treeBorrowed UI owner, between frames.
nodeLive area or bar.
focusedCurrent checked keyboard focus, or empty; copied for paint only.
Returns
Success or tree error; equal presentation flags do not invalidate.

◆ syncStatusBar()

std::expected< void, TreeError > portals::syncStatusBar ( WidgetTree & tree,
Node< StatusBar > node )

Synchronize the bar's own disabled appearance between frames on UI.

Parameters
treeOwning live tree, borrowed synchronously.
nodeLive observing bar identity in that tree.
Returns
Existing checked tree errors; changed eligibility invalidates paint before publication.

◆ tableColumn() [1/7]

template<class T, class Member, class Formatter>
requires ColumnFormatter<T, Member T::*, Formatter>
std::expected< TableColumn< T >, TextError > portals::tableColumn ( ColumnId id,
std::string_view header,
Member T::* member,
Formatter formatter,
std::int32_t width = 1,
WidthPolicy policy = {} )

Deduce a field's record and validate a plain UTF-8 header.

Template Parameters
TRecord type inferred from the member pointer; borrowed immutable rows.
MemberProjected member type, satisfying ColumnProjection.
FormatterCopyable exact GraphemeText formatter for that projection.
Parameters
idExplicit stable identity, retained unchanged.
headerHeader bytes borrowed during construction and owned on success.
memberOwning member pointer; no row copies or reads during construction.
formatterCallback owned by value; borrowed captures require external lifetime.
widthWidth in terminal cells, validated during table preparation.
policyWidth policy used for the owning header; formatter text must match it.
Returns
Existing TableColumn<T> or the original header TextError. Callback construction/allocation exceptions propagate, as in the original factory.

◆ tableColumn() [2/7]

template<class T, class Member, class Formatter>
requires ColumnFormatter<T, Member T::*, Formatter>
TableColumnSpec< T > portals::tableColumn ( std::string_view header,
Member T::* member,
Formatter formatter,
std::int32_t width = 1 )

Infer a fixed-schema record from a member pointer, without explicit IDs.

Template Parameters
TImmutable row type inferred from its member pointer.
MemberData or const member-function type accepted through std::invoke.
FormatterCopyable exact GraphemeText formatter.
Parameters
headerCaption copied now, validated during tableColumns assembly.
memberOwned member pointer; no domain row is copied.
formatterOwned callback; borrowed captures need external lifetime.
widthWidth in cells; validated by the retained table.
Returns
Owning identity-free recipe; construction may allocate.

◆ tableColumn() [3/7]

template<class T, class Member>
requires ColumnProjection<T, Member T::*> && std::formattable<std::remove_cvref_t<std::invoke_result_t<Member T::*&, const T &>>,
char>
TableColumnSpec< T > portals::tableColumn ( std::string_view header,
Member T::* member,
std::int32_t width = 1 )

Deduce the row type of a default-formatted member column.

Parameters
headerOwned UTF-8 schema caption.
memberField or const member function.
widthWidth validated by the receiving table.
Returns
Deferred typed column specification.

◆ tableColumn() [4/7]

template<class T, class Projection, class Formatter>
requires ColumnFormatter<T, Projection, Formatter>
TableColumnSpec< T > portals::tableColumn ( std::string_view header,
Projection projection,
Formatter formatter,
std::int32_t width = 1 )

Describe a fixed-schema column without exposing identity bookkeeping.

Template Parameters
TBorrowed immutable row type, explicit for lambda projections.
ProjectionCopyable projection satisfying ColumnProjection.
FormatterCopyable exact GraphemeText formatter for the projected value.
Parameters
headerUTF-8 caption copied now and validated by tableColumns.
projectionOwned callable; projection results borrow only for invocation.
formatterOwned formatter using the eventual table's width policy.
widthWidth in terminal cells; validated by the retained table.
Returns
Owning recipe, with no ID until assembled; construction may allocate.

◆ tableColumn() [5/7]

template<class T, class Projection>
requires ColumnProjection<T, Projection> && std::formattable<std::remove_cvref_t<std::invoke_result_t<Projection &, const T &>>, char>
TableColumnSpec< T > portals::tableColumn ( std::string_view header,
Projection projection,
std::int32_t width = 1 )

Describe a projected column with the existing default standard formatter.

Template Parameters
TDomain row; explicit for lambda projections.
ProjectionOwned projection.
Parameters
headerOwning schema caption.
projectionMember or callable taking const T&.
widthPositive cell width checked by the mounted table.
Returns
Cold schema field whose formatter adopts each receiving table's width policy.

◆ tableColumn() [6/7]

template<class T, class Member, class Formatter>
requires ColumnFormatter<T, Member T::*, Formatter>
TableColumn< T > portals::tableColumn ( TableColumnOptions options,
Member T::* member,
Formatter formatter )

Deduce the domain record from a data or member-function pointer.

Template Parameters
TRecord owning the member; rows are borrowed as const T &.
MemberMember type, invocable with the immutable record through std::invoke.
FormatterCopyable formatter returning exactly owning GraphemeText.
Parameters
optionsExplicit stable identity, owning header and width in cells.
memberMember pointer owned by value; no record is copied.
formatterOwning callback following the original ColumnFormatter contract.
Returns
Existing typed column with unchanged validation and callback behavior.

◆ tableColumn() [7/7]

template<class T, class Projection, class Formatter>
requires ColumnFormatter<T, Projection, Formatter>
TableColumn< T > portals::tableColumn ( TableColumnOptions options,
Projection projection,
Formatter formatter )

Compose an owning typed column from explicit projection and text formatting.

Template Parameters
TDomain record type; rows are borrowed as const T & and never copied here.
ProjectionCopy-constructible projection satisfying ColumnProjection.
FormatterCopy-constructible formatter satisfying ColumnFormatter.
Parameters
optionsOwning identity, header and cell width; moved into the returned column.
projectionCallable owned by value; std::invoke supports member pointers and lambdas.
formatterCallable owned by value; consumes the projection's exact result category.
Returns
Existing TableColumn<T> with an owning composed callback and unchanged metadata.

Construction may throw while copying/moving callbacks or allocating their std::function storage. Neither callback is invoked during construction. References held by callbacks or returned by a projection remain borrowed; callers must keep their referents alive for each invocation. A temporary projection result lives through the formatter call. Callbacks must not retain row/result borrows, perform I/O, mutate the tree/model, or create unbounded temporary storage. Text must use the table's width policy. Table preparation retains its existing metadata/policy validation and callback exception handling; direct invocation of the returned format callback propagates exceptions. Invocation follows the table's UI-thread rules; this factory adds no synchronization or runtime state.

◆ tableColumns() [1/2]

template<class T, class... Rest>
requires (std::same_as<std::remove_cvref_t<Rest>, TableColumnSpec<T>> && ...)
std::expected< std::array< TableColumn< T >, 1+sizeof...(Rest)>, TextError > portals::tableColumns ( TableColumnSpec< T > first,
Rest &&... rest )

Assemble fixed-schema columns with the default display policy.

Template Parameters
TImmutable record type inferred from the first recipe.
RestAdditional exact TableColumnSpec<T> arguments, in display order.
Parameters
firstFirst recipe, copied or moved into the owning schema.
restRemaining recipes, retaining their formatter ownership rules.
Returns
Checked columns with deterministic table-local IDs or the first header TextError. Use the policy overload for nondefault terminal widths; dynamic schemas use explicit IDs.

◆ tableColumns() [2/2]

template<class T, class... Rest>
requires (std::same_as<std::remove_cvref_t<Rest>, TableColumnSpec<T>> && ...)
std::expected< std::array< TableColumn< T >, 1+sizeof...(Rest)>, TextError > portals::tableColumns ( WidthPolicy policy,
TableColumnSpec< T > first,
Rest &&... rest )

Assemble a fixed schema and allocate deterministic table-local identities.

Template Parameters
TImmutable record type inferred from the first recipe.
RestAdditional TableColumnSpec<T> arguments, in display order.
Parameters
policyWidth policy used for every validated owning header.
firstFirst owning recipe, copied or moved into assembly.
restRemaining recipes, copied from lvalues or consumed from rvalues.
Returns
Owning columns with IDs 1..N and initial generation, or the first header TextError. IDs are assigned once in argument order, independently per table; no global counter. Reordering the resulting array preserves identities. For dynamic schema replacement, use explicit TableColumnOptions/ColumnId instead of rebuilding a positional schema. Caption/locale changes never determine identity. Existing validation and callback exception behavior are unchanged; assembly itself may throw during allocation/copies.

◆ text() [1/4]

template<class... Args>
requires (sizeof...(Args) > 0) && (!(detail::IS_LIVE_TEXT_SOURCE<std::remove_cvref_t<Args>> || ...))
TextValue portals::text ( std::format_string< Args... > pattern,
Args &&... args )
nodiscard

Format immediately into owned bytes; defer validation and measurement.

Template Parameters
ArgsOne or more argument types accepted by the checked standard format string.
Parameters
patternStandard format string checked against Args at compilation.
argsValues borrowed only during formatting; no references are retained.
Returns
Independent expression containing the complete formatted bytes.
Exceptions
std::bad_allocIf formatting or expression storage cannot be allocated.
std::length_errorIf storage exceeds implementation limits.
std::format_errorIf formatting fails, including through a custom formatter.
Note
Other exceptions from user-defined formatters also propagate unchanged.

◆ text() [2/4]

template<class... Args>
requires (sizeof...(Args) > 0) && (detail::IS_LIVE_TEXT_SOURCE<std::remove_cvref_t<Args>> ||
...) && (ui::detail::TextFormatArgument<Args> && ...)
ui::ValueText portals::text ( std::format_string< const ui::detail::TextArgumentValue< Args > &... > pattern,
Args &&... args )
nodiscard

Declare live formatted text over explicit scalar roots, fields or value properties.

Template Parameters
ArgsOne or more owning arguments, including at least one scalar dependency. Static strings and string views are copied; borrowed pointers and unsupported views are rejected.
Parameters
patternStandard format string checked against the underlying argument value types.
argsOwning descriptors and static values retained by this cold expression.
Returns
Owning computed text root, validated under the receiving scene's width policy at mount. Construction may allocate/throw; runtime formatter errors preserve the previous valid caption and follow the existing observer error policy. There is no ambient locale or localization resolver.

◆ text() [3/4]

TextValue portals::text ( std::string_view bytes)
nodiscardconstexpr

Copy literal bytes into an owning expression without interpreting braces.

Parameters
bytesLiteral buffer borrowed only during this call; UTF-8 validation is deferred.
Returns
Independent expression, including for empty or invalid input.
Exceptions
std::bad_allocIf expression storage cannot be allocated.
std::length_errorIf expression storage exceeds implementation limits.
Note
With no format arguments, text("{}") stores the literal braces unchanged.

◆ text() [4/4]

template<class Resolver, class... Args>
requires (sizeof...(Args) > 0) && (detail::IS_LIVE_TEXT_SOURCE<std::remove_cvref_t<Args>> ||
...) && (ui::detail::TextFormatArgument<Args> && ...) && std::copy_constructible<Resolver> &&
(ui::detail::KeyResourceResolver<Resolver> || ui::detail::ValueResourceResolver<Resolver, ui::detail::TextArgumentValue
<Args>...>)
ui::ValueText portals::text ( TextValue pattern,
Resolver resolver,
Args &&... args )
nodiscard

Resolve an owning localization key and format over explicit scalar dependencies.

Template Parameters
ArgsOwning static arguments and scalar roots, including at least one live dependency.
Parameters
patternLiteral format pattern or resource key; translated format strings are checked at runtime.
Template Parameters
ResolverCopyable resource adapter accepting key alone or key followed by underlying argument values.
Parameters
resolverSynchronous adapter retained by value; no ambient locale or unpublished model is read.
argsFormat arguments and explicit dependencies. A changed argument unused by the pattern still triggers resolution, so a locale model can be listed explicitly without appearing in the output.
Returns
Owning computed source. Initial resource failures retain TextResourceError; later observer failures preserve the last valid caption and use the existing TreeError observer channel. Resource access and formatters must be short, memory-only and non-reentrant on the UI thread.

◆ themeFromTokens()

StyleSheet portals::themeFromTokens ( ThemeTokens tokens)
Parameters
tokensOwning palette colors.
Returns
Typed theme rules; allocation failure throws before tree mutation.

◆ tokyoNightTheme()

StyleSheet portals::tokyoNightTheme ( )
Returns
Typed Tokyo Night palette adapted from Textual through ThemeTokens; may allocate.

◆ transformSnapshot()

template<std::copy_constructible T, class Q, class Filter, class Compare, class Stop = std::function<bool()>>
std::expected< QueryPage< T >, QueryError > portals::transformSnapshot ( const Query< T, Q > & query,
Filter filter,
Compare compare,
QueryOptions options = {},
Stop stop = [] { return false; } )

Explicit local filter, stable sort, and page; never dispatches or starts provider I/O. Source scan, comparisons and output are independently bounded. Equal sort keys retain source order. IDs and generations are copied unchanged. T is copied only for output rows. Callbacks must be bounded, worker-safe and must not retain borrowed row/criteria arguments.

Template Parameters
TCopy-constructible immutable domain row satisfying the snapshot ownership contract.
QOwning domain criteria type passed by const reference to both callbacks.
FilterCallable bool(const T&, const Q&) selecting a row.
CompareStrict weak ordering callable bool(const T&, const T&, const Q&).
StopCallable bool() used for cooperative cancellation; never joins work.
Parameters
queryExact source, owning criteria and desired page.
filterPredicate invoked at most maxSourceRows times.
compareOrdering invoked at most maxComparisons times.
optionsPositive finite work and output limits.
stopCancellation predicate checked during scan, comparison and copy.
Returns
Owning exact-source page or typed evaluation failure; exceptions are translated.

◆ translated()

std::expected< CellPoint, GeometryError > portals::translated ( CellPoint point,
CellPoint offset )
nodiscardnoexcept

Translate a cell point by an explicit columns/rows offset.

Parameters
pointValue to translate, copied without borrowing storage.
offsetSigned cell displacement, copied without borrowing storage.
Returns
An independent point, or GeometryError::COORDINATE_OVERFLOW.
Note
Any thread; no allocation, exceptions, mutation or invalidation.

◆ turboTheme()

StyleSheet portals::turboTheme ( )
Returns
Typed Turbo-like theme, equivalent to themes/turbo.pss; may allocate.

◆ validateDiagnosticVersion()

std::expected< void, DiagnosticError > portals::validateDiagnosticVersion ( std::string_view text)
noexcept

Check the version line before interpreting an application's diagnostic export.

Parameters
textExport bytes borrowed only for this check; no payload is executed.
Returns
Success for schema 1; UNSUPPORTED_VERSION otherwise.

◆ validateLogLimits()

std::expected< void, TreeError > portals::validateLogLimits ( LogLimits limits)
noexcept
Parameters
limitsPositive bounds, including maxRecordBytes <= maxBytes and maxBatchBytes.
Returns
Success or INVALID_ARGUMENT, without allocation or side effects.

◆ validateScrollOptions() [1/2]

std::expected< void, TreeError > portals::validateScrollOptions ( const ScrollAreaOptions & options)
nodiscardnoexcept

Validate area settings and the optional existing BorderOptions.

Parameters
optionsOwning input settings, borrowed only for this call.
Returns
Success, or INVALID_ARGUMENT for invalid settings/placement/frame configuration.
Note
Any thread; no allocation, callbacks, mutation or invalidation occurs.

◆ validateScrollOptions() [2/2]

std::expected< void, TreeError > portals::validateScrollOptions ( const ScrollBarOptions & options)
nodiscardnoexcept

Validate standalone bar settings without mutation, allocation or callbacks.

Parameters
optionsOwning input settings, borrowed only for this call.
Returns
Success, or INVALID_ARGUMENT for an invalid glyph/step/minimum/budget.
Note
Any thread; no invalidation or resource acquisition occurs.

◆ validateShortcut()

std::expected< void, ShortcutError > portals::validateShortcut ( const Shortcut & shortcut,
ShortcutOptions options = {} )
noexcept
Parameters
shortcutBorrowed owning values to validate before atomic registration.
optionsPositive finite alternative/stroke budgets shared by singles and sequences.
Returns
Success or an allocation-free typed value/index failure.

◆ validateStyleTarget()

std::expected< void, StyleError > portals::validateStyleTarget ( const StyleTarget & target)
noexcept

Validate bounded ancestor metadata without allocation or retaining input.

Parameters
targetStable owning metadata; a nonempty lineage requires a concrete immediate type.
Returns
Success or INVALID_ARGUMENT for excessive depth, empty/wildcard, duplicate or self ancestors.

◆ validScrollOffset()

bool portals::validScrollOffset ( ScrollOffset offset)
nodiscardconstexprnoexcept

Validate an offset remainder without losing its integral index.

Parameters
offsetOwning intended position; the integral component is unrestricted.
Returns
True for a finite remainder in [0,1); false for NaN/infinity/out-of-range values.

◆ version()

Version portals::version ( )
noexcept

Return the version of the linked library by value.

Returns
Independent version components; no resources need to be released.
Note
Callable from any thread, including concurrently. No allocation, I/O, exceptions, or error states. Returned values are never invalidated. This is release metadata, not an API/ABI compatibility guarantee.

◆ words()

std::expected< TextSegments, TreeError > portals::words ( const GraphemeText & input,
TextSplitOptions options = {} )

Split on whole graphemes consisting only of scalars in Unicode White_Space.

Parameters
inputValidated owning input borrowed only during the call; output retains an independent copy.
optionsInput bounds and positive token cap.
Returns
Owning tokens, INVALID_ARGUMENT for zero token cap, NODE_LIMIT for resource caps, NO_MEMORY or CALLBACK_FAILED. Punctuation, apostrophes, CJK and emoji are preserved. This is not Unicode word-break or linguistic analysis.

Variable Documentation

◆ DEFAULT_CONTENT_POLICY

SizePolicy portals::DEFAULT_CONTENT_POLICY
inlineconstexpr
Initial value:
{.width = {.mode = SizeMode::CONTENT},
.height = {.mode = SizeMode::CONTENT}}
@ CONTENT
Prefer intrinsic size, shrink towards minimum, and never grow to consume spare cells.
Definition layout.hpp:16

Intrinsic content on both axes; explicit policies remain authoritative.

◆ DEFAULT_EDITOR_POLICY

SizePolicy portals::DEFAULT_EDITOR_POLICY
inlineconstexpr
Initial value:
{.width = {.minimum = 1, .preferred = 0, .mode = SizeMode::FLEX},
.height = {.mode = SizeMode::CONTENT}}
@ FLEX
Share spare main-axis cells by weight; allow shrinking towards minimum.
Definition layout.hpp:15

Single-line editors retain one cell even during shortage; text length is not a flex basis.

◆ DEFAULT_FLEX_WIDTH_POLICY

SizePolicy portals::DEFAULT_FLEX_WIDTH_POLICY
inlineconstexpr
Initial value:
{.width = {.preferred = 0, .mode = SizeMode::FLEX},
.height = {.mode = SizeMode::CONTENT}}

Fill available width from a zero flex basis while retaining content height.

◆ DEFAULT_MENU_POLICY

SizePolicy portals::DEFAULT_MENU_POLICY
inlineconstexpr
Initial value:
{.width = {.mode = SizeMode::CONTENT},
.height = {.mode = SizeMode::CONTENT}}

Natural menu extent on both axes; callers may supply an ordinary explicit SizePolicy.

◆ DEFAULT_STATUS_BAR_POLICY

SizePolicy portals::DEFAULT_STATUS_BAR_POLICY
inlineconstexpr
Initial value:
{.width = {.preferred = 0, .mode = SizeMode::FLEX},
.height = {.preferred = 1, .mode = SizeMode::FIXED}}
@ FIXED
Keep the bounded preferred/intrinsic extent even when it overflows the available space.
Definition layout.hpp:14

Fill offered width and request one fixed row; explicit sizing remains authoritative.

◆ DEFAULT_VIEWPORT_POLICY

SizePolicy portals::DEFAULT_VIEWPORT_POLICY
inlineconstexpr
Initial value:
{.width = {.preferred = 0, .mode = SizeMode::FLEX},
.height = {.preferred = 0, .mode = SizeMode::FLEX}}

A bounded data viewport fills both axes without requesting the whole model extent.

◆ MAX_HEX_ROW_BYTES

std::size_t portals::MAX_HEX_ROW_BYTES = 4096
inlineconstexpr

Maximum amount of input processed in one row, not a document size limit.

◆ SPINNER_PRESET_NAMES

std::array<std::string_view, 12> portals::SPINNER_PRESET_NAMES
inlineconstexpr
Initial value:
{"DOTS", "LINE", "BRAILLE", "BAR_BOUNCE",
"ARC", "CIRCLE", "SQUARE", "TRIANGLE",
"ARROW", "BLOCKS", "ELLIPSIS", "PULSE"}

Canonical names in SpinnerPreset ordinal order.