ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::ZMarkup::StyleSheet Struct Reference

Intermediate representation: parsed rules, keyframes and root vars. More...

#include <StyleParser.hpp>

Classes

struct  Rule
 One selector-plus-declarations entry. More...
struct  KfFrame
 One from/to/N% frame inside @keyframes. More...
struct  KfRule
 One @keyframes name { ... } block. More...

Public Attributes

std::vector< Rule > rules
std::vector< KfRule > keyframes
std::unordered_map< std::string, std::string > vars
std::vector< Declaration > rootDecls

Detailed Description

Intermediate representation: parsed rules, keyframes and root vars.

Produced by StyleParser::parse() and consumed by applyStyleSheet. Storing the IR separately from Theme allows validating a stylesheet without mutating the live theme, and makes tests easier.


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