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

Owned immutable-at-use rules; constructing typed values may allocate and throw. More...

#include <style.hpp>

Public Member Functions

 ~StyleSheet ()=default
 Destroy owned values. Deliberately suppress implicit noexcept moves: checked MSVC container moves can allocate; copy-based transfers allow allocation failure to propagate.
bool operator== (const StyleSheet &other) const =default

Public Attributes

std::vector< StyleRule > rules
 Source-order rules, at most MAX_STYLE_RULES when installed.
std::optional< NodeId > scope {}
 Optional exact node restriction; preserves selector specificity and source metadata.

Detailed Description

Owned immutable-at-use rules; constructing typed values may allocate and throw.

Member Function Documentation

◆ operator==()

bool portals::StyleSheet::operator== ( const StyleSheet & other) const
default
Parameters
otherOwning value to compare.
Returns
Whether all typed fields are equal.

Member Data Documentation

◆ rules

std::vector<StyleRule> portals::StyleSheet::rules
Initial value:
=
std::vector<StyleRule>(0)

Source-order rules, at most MAX_STYLE_RULES when installed.


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