Expand description
Helper functions which it make it easier to create instances of types in the style
and geometry
modules.
Traits§
- FromFr
- Trait to create constant percent values from plain numbers
- From
Length - Trait to create absolute length values from plain numbers
- From
Percent - Trait to create constant percent values from plain numbers
- Taffy
Auto - Trait to abstract over auto values
- Taffy
FitContent - Trait to create
fit-content(…)
values from plain numbers - Taffy
Grid Line - Trait to abstract over grid line values
- Taffy
Grid Span - Trait to abstract over grid span values
- Taffy
MaxContent - Trait to abstract over max_content values
- Taffy
MinContent - Trait to abstract over min_content values
- Taffy
Zero - Trait to abstract over zero values
Functions§
- auto
- Returns the auto value for that type
- evenly_
sized_ tracks - Returns a grid template containing
count
evenly sized tracks - fit_
content - Returns a value of the inferred type which represent a
fit-content(…)
value with the given argument. - flex
- Shorthand for minmax(0, Nfr). Probably what you want if you want exactly evenly sized tracks.
- fr
- Create a
Fraction
track sizing function (fr
in CSS) - length
- Returns a value of the inferred type which represent an absolute length
- line
- Specifies a grid line to place a grid item between in CSS Grid Line coordinates:
- max_
content - Returns the auto value for that type
- min_
content - Returns the auto value for that type
- minmax
- Returns a MinMax with min value of min and max value of max
- percent
- Returns a value of the inferred type which represent a percentage
- repeat
- Returns an auto-repeated track definition
- span
- Returns a GridPlacement::Span
- zero
- Returns the zero value for that type