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

Conjunction of optional type, id, classes, one state and read-only; no hierarchy combinators. More...

#include <style.hpp>

Public Member Functions

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

Public Attributes

std::string type {""}
 Empty or * means any type.
std::string id {""}
 Empty means any identity.
std::vector< std::string > classes = std::vector<std::string>(0)
 Every named class is required.
StyleState state {StyleState::ANY}
 Optional presentation-state predicate.
bool readOnly {false}
 True requires read-only; false adds no qualifier.

Detailed Description

Conjunction of optional type, id, classes, one state and read-only; no hierarchy combinators.

Member Function Documentation

◆ operator==()

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

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