Expand description
CSS handling for the basic-shape
types that are generic over their ToCss implementations.
Re-exports§
pub use self::GenericClipPath as ClipPath;pub use self::GenericShapeOutside as ShapeOutside;pub use self::GenericBasicShape as BasicShape;pub use self::GenericInsetRect as InsetRect;pub use self::GenericShapeRadius as ShapeRadius;pub use self::GenericPolygon as Polygon;pub use self::GenericShapeCommand as ShapeCommand;
Structs§
- ArcRadii
- Defines the radiuses for an
. - Circle
- https://drafts.csswg.org/css-shapes/#funcdef-circle
- Coordinate
Pair - Defines a pair of coordinates, representing a rightward and downward offset, respectively, from a specified reference point. Percentages are resolved against the width or height, respectively, of the reference box. https://drafts.csswg.org/css-shapes-2/#typedef-shape-coordinate-pair
- Ellipse
- https://drafts.csswg.org/css-shapes/#funcdef-ellipse
- Generic
Inset Rect - https://drafts.csswg.org/css-shapes/#funcdef-inset
- Generic
Polygon - A generic type for representing the
polygon()function - Path
- The path function.
- Polygon
Coord - Coordinates for Polygon.
- Relative
Control Point - Defines a relative control point to a quadratic or cubic Bézier curve, dependent on the
reference value. The default
Noneis to be relative to the command’s starting point. https://drafts.csswg.org/css-shapes/#typedef-shape-relative-control-point - Shape
- The shape function defined in css-shape-2.
shape() = shape(
? from , #)
Enums§
- ArcSize
- This indicates that the larger or smaller, respectively, of the two possible arcs must be chosen. https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-size
- ArcSweep
- This indicates that the arc that is traced around the ellipse clockwise or counter-clockwise from the center. https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-sweep
- Axis
EndPoint - Defines the end point for the commands
and , which can be specified in absolute or relative values, determined by their “to” or “by” components respectively. https://drafts.csswg.org/css-shapes-1/#typedef-shape-horizontal-line-command https://drafts.csswg.org/css-shapes-1/#typedef-shape-vertical-line-command - Axis
Position - Defines how the absolutely positioned end point for
and is positioned. https://drafts.csswg.org/css-shapes-1/#typedef-shape-horizontal-line-command https://drafts.csswg.org/css-shapes-1/#typedef-shape-vertical-line-command - Axis
Position Keyword - The set of position keywords used in
and for absolute positioning. Note: this is the shared union list between hline and vline, so not every value is valid for either. I.e. hline cannot be positioned with top or y-start. https://drafts.csswg.org/css-shapes-1/#typedef-shape-horizontal-line-command https://drafts.csswg.org/css-shapes-1/#typedef-shape-vertical-line-command - Command
EndPoint - Defines the end point of the command, which can be specified in absolute or relative coordinates, determined by their “to” or “by” components respectively. https://drafts.csswg.org/css-shapes/#typedef-shape-command-end-point
- Control
Point - Defines a control point for a quadratic or cubic Bézier curve, which can be specified in absolute or relative coordinates. https://drafts.csswg.org/css-shapes/#typedef-shape-control-point
- Control
Reference - Defines the point of reference for a
. - Fill
Rule - Generic
Basic Shape - The
. - Generic
Clip Path - A value for the
clip-pathproperty. - Generic
Path OrShape Function - path() function or shape() function.
- Generic
Shape Command - This is a more general shape(path) command type, for both shape() and path().
- Generic
Shape Outside - A value for the
shape-outsideproperty. - Generic
Shape Radius - https://drafts.csswg.org/css-shapes/#typedef-shape-radius
- Shape
Box - https://drafts.csswg.org/css-shapes-1/#typedef-shape-box
- Shape
Geometry Box - https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box
Type Aliases§
- Shape
Position - A generic value for
<position>in circle(), ellipse(), and shape().