Expand description
Runtime CSS selector matching (:hover, @os, @media, etc.).
Dynamic CSS selectors for runtime evaluation based on OS, media queries, container queries, etc.
Structs§
- CssProperty
With Conditions - A CSS property with optional conditions for when it should be applied.
This replaces
NodeDataInlineCssPropertywith a more flexible system. - CssProperty
With Conditions Vec - CssProperty
With Conditions VecSlice - C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
- Desktop
EnvVersion - A desktop environment together with a numeric version (e.g. GNOME 40).
Used by
OsVersionCondition::DesktopEnv{Min,Max,Exact}for@os(linux:gnome > 40)style selectors. - Dynamic
Selector Context - Context for evaluating dynamic selectors
- Dynamic
Selector Vec - Dynamic
Selector VecSlice - C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
- MinMax
Range - Min/Max Range for numeric conditions (C-compatible)
- OsVersion
- OS version with ordering - only comparable within the same OS family
- Pseudo
State Flags - State flags for pseudo-classes (used in DynamicSelectorContext) Note: This is a CSS-only version. See azul_core::styled_dom::StyledNodeState for the main type.
Enums§
- Bool
Condition - Boolean condition (C-compatible)
- CssProperty
With Conditions VecDestructor - Dynamic
Selector - Dynamic selector that is evaluated at runtime C-compatible: Tagged union with single field
- Dynamic
Selector VecDestructor - Language
Condition - Language/Locale condition for @lang() CSS selector Matches BCP 47 language tags with prefix matching
- Linux
Desktop Env - Linux desktop environment for
@os(linux:<de>)CSS selectors. - Media
Type - Media type for
@mediaCSS selectors (screen, print, all) - Option
CssProperty With Conditions - Option
Dynamic Selector - Option
Linux Desktop Env - Option
OsCondition - Option
OsVersion - Option
Theme Condition - Orientation
Type - Orientation type for
@media (orientation: ...)CSS selectors - OsCondition
- Operating system condition for
@osCSS selectors - OsFamily
- OS family for version comparisons
- OsVersion
Condition - Pseudo
State Type - Theme
Condition
Constants§
- DEFAULT_
VIEWPORT_ HEIGHT - Default viewport height used when actual window size is not yet known.
- DEFAULT_
VIEWPORT_ WIDTH - Default viewport width used when actual window size is not yet known.
Functions§
- parse_
os_ at_ rule_ content - Parse the content of an
@os(...)at-rule into a list of dynamic-selector conditions. - parse_
os_ version - Parse a named or numeric OS version string Returns None if the version string is not recognized