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

Owning scalar observation; no source I/O or preparation is performed by status commands. More...

#include <document_view.hpp>

Public Attributes

DocumentRevision revision
 Last worker-observed exact source revision.
DocumentViewMode mode {DocumentViewMode::TEXT}
 Committed projection; HEX has no logical line counts.
std::uint64_t byteOffset {}
 Requested original byte anchor, preserved during reflow.
std::uint64_t visibleByteOffset {}
 Proven first rendered row/fragment byte, independent of the requested anchor.
std::optional< std::uint64_t > byteExtent
 Last observed exact extent, or unknown.
std::optional< std::uint64_t > logicalLine
 One-based proven line containing the anchor.
std::optional< std::uint64_t > totalLines
 Proven final logical count, or unknown.
std::optional< DocumentError > error
 Latest preparation failure, if any.
bool anchorBeyondExtent {}
 Requested anchor exceeds the last known extent; rendering projects available content.
bool backpressured {}
 Shared capacity is busy; source-budget capacity notification permits a bounded retry.
bool preparing {true}
 Bounded work remains for the latest intent.
bool waiting {}
 Provider returned no bytes without definitive EOF; explicit refresh resumes it.
bool finalEnd {}
 Latest worker reached definitive EOF.
bool fragmentedCluster {}
 Grapheme continuation used when a cluster or bounded context cannot be proven locally.
DocumentLanguage language {DocumentLanguage::PLAIN}
 Active lexical profile retained across HEX projection.
DocumentSyntaxState highlighting {DocumentSyntaxState::DISABLED}
 Proven state of displayed syntax roles.
std::optional< std::uint64_t > highlightErrorOffset
 Original byte offset of a lexical limitation, if reported.
DocumentSyntaxAccuracy syntaxAccuracy {DocumentSyntaxAccuracy::NONE}
 Accuracy of the displayed roles.
DocumentSyntaxPolicy syntax {DocumentSyntaxPolicy::AUTO}
 Requested recovery policy.

Detailed Description

Owning scalar observation; no source I/O or preparation is performed by status commands.


The documentation for this struct was generated from the following file: