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

Owning finite-document presentation; never a window into an arbitrary file. More...

#include <ui_text_document.hpp>

Public Member Functions

bool operator== (const TextDocumentValue &other) const =default

Public Attributes

std::string text = std::string(0, '\0')
 Current complete finite UTF-8 text.
std::string target = std::string(0, '\0')
 Last acknowledged destination metadata; no I/O.
TextSelection selection
 Current byte-boundary selection.
std::uint64_t refreshStamp {}
 UI retry epoch; not a document revision.
std::uint64_t revision {}
 Current text revision, independent of save requests.
bool dirty {}
 Current content differs from its savepoint.
bool conflicted {}
 External replacement awaits explicit resolution.
bool canUndo {}
 Existing document history has an Undo operation.
bool canRedo {}
 Existing document history has a Redo operation.

Detailed Description

Owning finite-document presentation; never a window into an arbitrary file.

Member Function Documentation

◆ operator==()

bool portals::ui::TextDocumentValue::operator== ( const TextDocumentValue & other) const
default
Parameters
otherOwning presentation to compare.
Returns
Equality of all fields.

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