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

Small validated scalar payload; avoids constructing six optional fields per parsed occurrence. More...

#include <pss_parser.hpp>

Inheritance diagram for portals::detail::PssValue:
portals::detail::PssValueportals::detail::PssValue portals::PssScalarValue

Public Member Functions

constexpr PssValue (PssScalarValue scalar={})
Public Member Functions inherited from portals::PssScalarValue
constexpr bool operator== (const PssScalarValue &other) const =default

Public Attributes

std::string_view roleName
 Synchronous named destination; runtime sinks must copy.
std::string_view glyph
 Synchronous parser borrow; runtime sinks must copy before returning.
Public Attributes inherited from portals::PssScalarValue
RgbColor color
 FOREGROUND or BACKGROUND RGB; otherwise zero.
bool boolean {}
 BOLD, ITALIC, or UNDERLINE flag, including explicit false.
std::int32_t width {}
 Cell bound/extent, or bit-preserved unsigned weight for a FLEX axis.
std::int32_t pattern {}
 Property-tagged glyph/preset ordinal or StyleSizeMode; otherwise zero.

Detailed Description

Small validated scalar payload; avoids constructing six optional fields per parsed occurrence.

Constructor & Destructor Documentation

◆ PssValue()

portals::detail::PssValue::PssValue ( PssScalarValue scalar = {})
inlineconstexpr
Parameters
scalarValidated owning scalar fields; empty when parsing a glyph string.

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