Expand description
Types and methods used to describe the style of an application
Structs§
- Css
- Css stylesheet - contains a parsed CSS stylesheet in “rule blocks”, i.e. blocks of key-value pairs associated with a selector path.
- CssDeclaration
Vec - CssNth
Child Pattern - CssPath
- Represents a full CSS path (i.e. the “div#id.class” selector belonging to a CSS “content group” (the following key-value block)).
- CssPath
Selector Vec - CssRule
Block - One block of rules that applies a bunch of rules to a “path” in the style, i.e.
div#myid.myclass -> { ("justify-content", "center") } - CssRule
Block Vec - Dynamic
CssProperty - A
DynamicCssPropertyis a type of css property that can be changed on possibly every frame by the Rust code - for example to implement anOn::Hoverbehaviour. - Rule
Iterator - Stylesheet
- Stylesheet
Vec
Enums§
- CssDeclaration
- Contains one parsed
key: valuepair, static or dynamic - CssDeclaration
VecDestructor - CssNth
Child Selector - CssPath
Pseudo Selector - CssPath
Selector - CssPath
Selector VecDestructor - CssProperty
Value - CssRule
Block VecDestructor - Node
Type Tag - Signifies the type of a DOM node without carrying any associated data
- Node
Type TagParse Error - Node
Type TagParse Error Owned - Stylesheet
VecDestructor
Traits§
Functions§
- css_
to_ rust_ code - format_
dynamic_ css_ prop - format_
node_ type - format_
nth_ child_ selector - format_
pseudo_ selector_ type - format_
selectors - format_
single_ selector - get_
specificity - Returns specificity of the given css path. Further information can be found on the w3 website.
- print_
block_ path - print_
declaration