|
ZenitUI
Retained-mode C++20 UI framework
|
Executable metadata table for ZStyle properties, shorthands, and syntax constructs. More...
#include "Style.hpp"#include "Diagnostics.hpp"#include <cstddef>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | ZenitUI::ParseCtx |
| Context passed to executable property parsers. More... | |
| struct | ZenitUI::PropSpec |
| Executable + documentation descriptor for one ZStyle key. More... | |
| struct | ZenitUI::StyleNameDoc |
| Documentation entry for a language construct (value syntax, selector, pseudo-class, media feature). More... | |
| struct | ZenitUI::PseudoClassSpec |
| Executable + documentation descriptor for a pseudo-class (:hover, :not(), ...). More... | |
| struct | ZenitUI::MediaFeatureSpec |
| Executable + documentation descriptor for a @media feature. More... | |
Typedefs | |
| using | ZenitUI::StyleApplyFn = ParseResult (*)(Style &, std::string_view, const ParseCtx &) |
Enumerations | |
| enum class | ZenitUI::ParseResult { ParseResult::Ok , ParseResult::Invalid , ParseResult::Reported } |
| Outcome of applying a single property value via a PropSpec. More... | |
| enum class | ZenitUI::MediaFeatureId { MinWidth , MaxWidth , MinHeight , MaxHeight , Orientation , MinAspectRatio , MaxAspectRatio } |
| Canonical identifier for each supported @media feature. | |
Functions | |
| const std::vector< PropSpec > & | ZenitUI::stylePropSpecs () |
| All documented & executable ZStyle keys (properties, shorthands, aliases). | |
| const PropSpec * | ZenitUI::findStylePropSpec (std::string_view key) |
| O(1) lookup by ZStyle key; returns nullptr if unknown. | |
| std::size_t | ZenitUI::countUnmigratedStyleSpecs () |
| Number of specs whose apply pointer is still nullptr (migration audit). | |
| const std::vector< StyleNameDoc > & | ZenitUI::styleValueSyntaxDocs () |
| Shared value types (<value>, <color>, <time>, <easing>). | |
| const std::vector< StyleNameDoc > & | ZenitUI::styleSelectorDocs () |
| Selector syntax (Button, .cls, #id, >, +, ~, *, ::part). | |
| const std::vector< StyleNameDoc > & | ZenitUI::styleConstructDocs () |
| Top-level ZStyle constructs (:root, --custom, var(), @keyframes, @media, ::part). | |
| const std::vector< StyleNameDoc > & | ZenitUI::stylePseudoClassDocs () |
| Supported pseudo-classes (:hover, :pressed, :focus, :disabled, :checked, :not()). | |
| const std::vector< StyleNameDoc > & | ZenitUI::styleMediaFeatureDocs () |
| Supported @media features (min-width, orientation, ...). | |
| const std::vector< PseudoClassSpec > & | ZenitUI::stylePseudoClassSpecs () |
| const PseudoClassSpec * | ZenitUI::findPseudoClassSpec (std::string_view name) |
| const std::vector< MediaFeatureSpec > & | ZenitUI::styleMediaFeatureSpecs () |
| const MediaFeatureSpec * | ZenitUI::findMediaFeatureSpec (std::string_view name) |
Executable metadata table for ZStyle properties, shorthands, and syntax constructs.
Single source of truth consumed by: