Expand description
CSS handling for the specified value of
basic-shape
s
Re-exportsยง
pub use crate::values::generics::basic_shape::FillRule;
Structsยง
- Allowed
Basic Shapes - The flags to represent which basic shapes we would like to support.
- Shape
Rect Function - Defines a rectangle via insets from the top and left edges of the reference box.
- Xywh
- The specified value of
xywh()
. Defines a rectangle via offsets from the top and left edge of the reference box, and a specified width and height.
Enumsยง
- Basic
Shape Rect - The specified value of
. = <inset()> | <rect()> | <xywh()> - Shape
Type - For filled shapes, we use fill-rule, and store it for path() and polygon(). For outline shapes, we should ignore fill-rule.
Functionsยง
- parse_
at_ ๐position - parse_
fill_ ๐rule - parse_
round ๐ - parse_
shape_ ๐or_ box - A helper for both clip-path and shape-outside parsing of shapes.
- round_
to_ ๐css
Type Aliasesยง
- Basic
Shape - A specified basic shape.
- Circle
- A specified circle.
- Clip
Path - A specified
clip-path
value. - Ellipse
- A specified ellipse.
- Inset
Rect - The specified value of
inset()
. - Path
OrShape Function - The specified value of
PathOrShapeFunction
. - Polygon
- The specified value of
Polygon
. - Shape
Command - The specified value of
ShapeCommand
. - Shape
Outside - A specified
shape-outside
value. - Shape
Position - A specified value for
at <position>
in circle() and ellipse(). - Shape
Radius - The specified value of
ShapeRadius
.