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

One owned selector/declaration pair in source order. More...

#include <style.hpp>

Public Member Functions

 ~StyleRule ()=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 StyleRule &other) const

Public Attributes

StyleSelector selector
 Matching and specificity criteria.
StyleDeclarations declarations
std::shared_ptr< const StyleSizing > sizing
 Optional immutable runtime sizing; shared ownership, never a view.
std::shared_ptr< const std::vector< StyleRolePatch > > roles
 Optional cold immutable semantic declarations.

Detailed Description

One owned selector/declaration pair in source order.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ declarations

StyleDeclarations portals::StyleRule::declarations

Values overriding less-specific rules.


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