|
| enum class | ZenitUI::Position : uint8_t { Static
, Relative
, Absolute
} |
| | CSS-style position modes supported by the layout system.
|
| enum class | ZenitUI::Overflow : uint8_t { Visible
, Hidden
, Scroll
, Auto
} |
| | CSS overflow modes for one axis.
|
| enum class | ZenitUI::WhiteSpace : uint8_t { Normal
, Nowrap
} |
| | CSS white-space values relevant to text layout.
|
| enum class | ZenitUI::TextOverflow : uint8_t { Visible
, Ellipsis
} |
| | CSS text-overflow modes supported by the text renderer.
|
| enum class | ZenitUI::SelectorCombinator : uint8_t { SelectorCombinator::Descendant
, SelectorCombinator::Child
, SelectorCombinator::AdjacentSibling
, SelectorCombinator::GeneralSibling
} |
| | Relationship between a selector and the preceding selector in a chain. More...
|
| enum class | Direction : uint8_t { Auto
, Row
, Column
} |
|
|
std::ostream & | ZenitUI::operator<< (std::ostream &os, const FontStack &stack) |
| | std::ostream operator for FontStack, used by debug output.
|
|
bool | ZenitUI::operator== (const std::vector< FilterRef > &a, const std::vector< FilterRef > &b) |
|
bool | ZenitUI::operator!= (const std::vector< FilterRef > &a, const std::vector< FilterRef > &b) |
|
bool | ZenitUI::operator== (const std::vector< GridTrack > &a, const std::vector< GridTrack > &b) |
|
bool | ZenitUI::operator!= (const std::vector< GridTrack > &a, const std::vector< GridTrack > &b) |
|
bool | ZenitUI::isInheritedProp (std::string_view name) |
| | true if the named property inherits from parent to child.
|
| bool | ZenitUI::clearStyleProp (Style &s, std::string_view name) |
| | Clear the property named name on s.
|
|
std::string | ZenitUI::kebabToCamel (std::string_view s) |
|
std::string | ZenitUI::camelToKebab (std::string_view s) |
|
bool | ZenitUI::operator== (const ComputedStyle &a, const ComputedStyle &b) |
| | Field-wise equality; used to detect layout-affecting style changes.
|
|
bool | ZenitUI::operator!= (const ComputedStyle &a, const ComputedStyle &b) |
|
float | ZenitUI::lerpProp (float a, float b, float t) |
|
Color | ZenitUI::lerpProp (const Color &a, const Color &b, float t) |
|
FontStack | ZenitUI::lerpProp (const FontStack &a, const FontStack &b, float t) |
|
Value | ZenitUI::lerpProp (const Value &a, const Value &b, float t) |
|
Spacing | ZenitUI::lerpProp (const Spacing &a, const Spacing &b, float t) |
|
template<typename E, typename = std::enable_if_t<std::is_enum_v<E>>> |
| E | ZenitUI::lerpProp (E a, E b, float t) |
|
ZIndex | ZenitUI::lerpProp (const ZIndex &a, const ZIndex &b, float t) |
|
std::string | ZenitUI::lerpProp (const std::string &a, const std::string &b, float t) |
|
SharedVector< FilterRef > | ZenitUI::lerpProp (const SharedVector< FilterRef > &a, const SharedVector< FilterRef > &b, float t) |
|
TextureRef | ZenitUI::lerpProp (const TextureRef &a, const TextureRef &b, float t) |
|
BoxShadow | ZenitUI::lerpProp (const BoxShadow &a, const BoxShadow &b, float t) |
|
SharedVector< GridTrack > | ZenitUI::lerpProp (const SharedVector< GridTrack > &a, const SharedVector< GridTrack > &b, float t) |
|
GridPlacement | ZenitUI::lerpProp (const GridPlacement &a, const GridPlacement &b, float t) |
|
ComputedStyle | ZenitUI::lerpStyle (const ComputedStyle &a, const ComputedStyle &b, float t) |
| | Field-wise lerp of two ComputedStyle.
|
|
ComputedStyle | ZenitUI::lerpStyleTimed (const ComputedStyle &a, const ComputedStyle &b, float realElapsed) |
| | Field-wise lerp using per-property durations from b's transition list.
|
|
bool | ZenitUI::stylesDiffer (const Style &a, const Style &b) |
| | Compare two sparse Style values for "would this change anything".
|
|
template<typename T> |
| Opt< T > | ZenitUI::lerpOpt (const Opt< T > &a, const Opt< T > &b, float t) |
|
Style | ZenitUI::lerpStyleParts (const Style &a, const Style &b, float t) |
|
void | ZenitUI::overlayComputed (ComputedStyle &dst, const Style &src) |
|
template<typename F> |
| void | ZenitUI::forEachSetStyleProp (const Style &s, F &&fn) |
|
bool | ZenitUI::copyStyleProp (Style &dst, const Style &src, std::string_view name) |
|
bool | ZenitUI::hasStyleProp (const Style &s, std::string_view name) |
|
const std::vector< PropDesc > & | ZenitUI::propTable () |
|
const PropDesc * | ZenitUI::findProp (std::string_view name) |
|
PropValue | ZenitUI::lerpValue (const PropValue &a, const PropValue &b, float t) |
The Style / ComputedStyle pair and all style-related value types.
Style is a "sparse" style: every property is wrapped in Opt<T> so the resolver can tell "unset" apart from "set to the default value". This lets stylesheet rules and inline overrides be layered with overlay() without losing the inheritance information.
ComputedStyle is the "dense" form: every property has a concrete value, either taken from the resolved Style, inherited from the parent, or defaulted. The layout and render code only ever sees ComputedStyle.
BUBBLE_STYLE_PROPS is the single source of truth for the property list. Adding a property there propagates to Style, ComputedStyle, lerp, equality, overlay, serialization, and the propTable() used by tooling.