Copyable immutable owning style payload with one shared stage identity. Independent unnamed stages compose. Reusing a stage in one scene checks its original real layer handle, preserves order and rejects removal as stale; named stages explicitly upsert tier/name. Construction can throw before a receiving facade boundary. Copies retain no UI owner.
More...
#include <ui_style.hpp>
|
| | StyleStage (const StyleStage &other) noexcept=default |
| StyleStage & | operator= (const StyleStage &other) noexcept=default |
| | StyleStage (std::string_view input, const StyleOptions &options={}, std::source_location origin=std::source_location::current()) |
| | StyleStage (const std::string &input, const StyleOptions &options={}, std::source_location origin=std::source_location::current()) |
| template<std::size_t N> |
| | StyleStage (const char(&input)[N], const StyleOptions &options={}, std::source_location origin=std::source_location::current()) |
template<class Pointer>
requires (std::same_as<std::remove_cvref_t<Pointer>, const char *> || std::same_as<std::remove_cvref_t<Pointer>, char *>) |
| | StyleStage (Pointer &&input, const StyleOptions &options={}, std::source_location origin=std::source_location::current()) |
| | StyleStage (const PssDocument &input, const StyleOptions &options={}, std::source_location origin=std::source_location::current()) |
| | StyleStage (const FileSource &input, const StyleOptions &options={}, std::source_location origin=std::source_location::current()) |
| template<std::size_t R, std::size_t C, std::size_t D, std::size_t B> |
| | StyleStage (const portals::style::ct::CompactSheet< R, C, D, B > &input, const StyleOptions &options={}, std::source_location origin=std::source_location::current()) |
Copyable immutable owning style payload with one shared stage identity. Independent unnamed stages compose. Reusing a stage in one scene checks its original real layer handle, preserves order and rejects removal as stale; named stages explicitly upsert tier/name. Construction can throw before a receiving facade boundary. Copies retain no UI owner.
◆ StyleStage() [1/8]
| portals::ui::StyleStage::StyleStage |
( |
const StyleStage & | other | ) |
|
|
defaultnoexcept |
- Parameters
-
| other | Owning immutable stage identity to share; moves use this same nonconsuming copy. Stage transfer never creates an empty payload or invalidates the original stage. |
◆ StyleStage() [2/8]
| portals::ui::StyleStage::StyleStage |
( |
std::string_view | input, |
|
|
const StyleOptions & | options = {}, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inline |
- Parameters
-
| input | Sized strict PSS input, copied/parsed before receiving facade entry. |
| options | Existing layer admission/source policy. |
| origin | Stage registration site. |
◆ StyleStage() [3/8]
| portals::ui::StyleStage::StyleStage |
( |
const std::string & | input, |
|
|
const StyleOptions & | options = {}, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inline |
- Parameters
-
| input | Owning string borrowed only during stage construction. |
| options | Existing layer policy. |
| origin | Stage registration site. |
◆ StyleStage() [4/8]
template<std::size_t N>
| portals::ui::StyleStage::StyleStage |
( |
const char(&) | input[N], |
|
|
const StyleOptions & | options = {}, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inline |
- Template Parameters
-
- Parameters
-
| input | Full array; only a final terminator is excluded, embedded NUL remains invalid. |
| options | Existing layer policy. |
| origin | Stage registration site. |
◆ StyleStage() [5/8]
template<class Pointer>
requires (std::same_as<std::remove_cvref_t<Pointer>, const char *> || std::same_as<std::remove_cvref_t<Pointer>, char *>)
| portals::ui::StyleStage::StyleStage |
( |
Pointer && | input, |
|
|
const StyleOptions & | options = {}, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inline |
- Template Parameters
-
| Pointer | Exactly char* or const char*, without accepting arrays through this overload. |
- Parameters
-
| input | Valid nonnull terminated C string; use a sized view for arbitrary bytes. |
| options | Existing layer policy. |
| origin | Stage registration site. |
◆ StyleStage() [6/8]
| portals::ui::StyleStage::StyleStage |
( |
const PssDocument & | input, |
|
|
const StyleOptions & | options = {}, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inline |
- Parameters
-
| input | Mutable document admitted before an immutable deep copy. |
| options | Existing layer/source policy. |
| origin | Registration site. |
◆ StyleStage() [7/8]
| portals::ui::StyleStage::StyleStage |
( |
const FileSource & | input, |
|
|
const StyleOptions & | options = {}, |
|
|
std::source_location | origin = std::source_location::current() ) |
|
inline |
- Parameters
-
| input | Explicit native owning file path. |
| options | Existing layer/source policy. |
| origin | Registration site. |
◆ StyleStage() [8/8]
template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
- Template Parameters
-
| R | Checked rule capacity. |
| C | Checked class capacity. |
| D | Checked occurrence capacity. |
| B | Checked owning text capacity. |
- Parameters
-
| input | Existing checked compact sheet. |
| options | Existing layer/source policy. |
| origin | Registration site. |
◆ bytes()
| StyleStage portals::ui::StyleStage::bytes |
( |
std::string_view | bytes, |
|
|
const StyleOptions & | options, |
|
|
std::source_location | origin ) |
|
static |
- Parameters
-
| bytes | Strict UTF-8 PSS bytes, borrowed only during owning parse. |
| options | Layer admission and owning source identity. |
| origin | Stage construction site used by pipe registration. |
- Returns
- Owning immutable parsed stage or owning fixed error stage; no borrowed bytes escape. Error labels retain only a valid UTF-8 prefix within 4096 bytes, or empty for invalid UTF-8/NUL.
◆ document()
- Parameters
-
| document | Mutable public document borrowed for allocation-free validation before copying. |
| options | Layer admission; empty sourceName preserves document identity. |
| origin | Stage construction site. |
- Returns
- Owning immutable document or fixed error stage, never an alias of mutable caller storage.
◆ failure()
- Parameters
-
| failure | Fixed owning parser/materialization error with static message. |
| options | Layer policy and bounded owning UTF-8 source label; invalid labels become empty. |
| origin | Stage construction site. |
- Returns
- Deferred typed failure with no retained input view.
◆ operator=()
- Parameters
-
| other | Shared immutable payload replacing this stage identity. |
- Returns
- This stage after a nonallocating identity copy.
◆ source()
- Parameters
-
| source | Explicit owning file source, read at consumption. |
| options | Layer admission/source label. |
| origin | Stage construction site. |
- Returns
- Owning deferred file stage.
◆ operator| [1/2]
| Scene operator| |
( |
Scene && | input, |
|
|
const StyleStage & | stage ) |
|
friend |
- Parameters
-
| input | Consumed idle facade; owning move admission happens before stage dispatch. |
| stage | Shared immutable stage. |
- Returns
- Owning facade after one dispatch, safe for temporary chains.
◆ operator| [2/2]
| Scene & operator| |
( |
Scene & | owner, |
|
|
const StyleStage & | stage ) |
|
friend |
- Parameters
-
| owner | Stationary receiving facade. |
| stage | Shared immutable owning stage. |
- Returns
- Same facade reference after one dispatch.
The documentation for this class was generated from the following file: