Skip to main content

Module dynamic_selector

Module dynamic_selector 

Source
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§

CssPropertyWithConditions
A CSS property with optional conditions for when it should be applied. This replaces NodeDataInlineCssProperty with a more flexible system.
CssPropertyWithConditionsVec
CssPropertyWithConditionsVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
DesktopEnvVersion
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.
DynamicSelectorContext
Context for evaluating dynamic selectors
DynamicSelectorVec
DynamicSelectorVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
MinMaxRange
Min/Max Range for numeric conditions (C-compatible)
OsVersion
OS version with ordering - only comparable within the same OS family
PseudoStateFlags
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§

BoolCondition
Boolean condition (C-compatible)
CssPropertyWithConditionsVecDestructor
DynamicSelector
Dynamic selector that is evaluated at runtime C-compatible: Tagged union with single field
DynamicSelectorVecDestructor
LanguageCondition
Language/Locale condition for @lang() CSS selector Matches BCP 47 language tags with prefix matching
LinuxDesktopEnv
Linux desktop environment for @os(linux:<de>) CSS selectors.
MediaType
Media type for @media CSS selectors (screen, print, all)
OptionCssPropertyWithConditions
OptionDynamicSelector
OptionLinuxDesktopEnv
OptionOsCondition
OptionOsVersion
OptionThemeCondition
OrientationType
Orientation type for @media (orientation: ...) CSS selectors
OsCondition
Operating system condition for @os CSS selectors
OsFamily
OS family for version comparisons
OsVersionCondition
PseudoStateType
ThemeCondition

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

Type Aliases§

CssPropertyWithConditionsVecDestructorType
DynamicSelectorVecDestructorType