Expand description
CSS Shape data structures for shape-inside, shape-outside, and clip-path
These types are C-compatible (repr(C)) for use across FFI boundaries.
Structs§
- Line
Segment - A line segment representing available horizontal space at a given y-position. Used for line breaking within shaped containers.
- Line
Segment Vec - Shape
Circle - A circle shape defined by center point and radius
- Shape
Ellipse - An ellipse shape defined by center point and two radii
- Shape
Inset - An inset rectangle with optional border radius Defined by insets from the reference box edges
- Shape
Path - An SVG-like path (for future use)
- Shape
Point - A 2D point for shape coordinates (using f32 for precision)
- Shape
Point Vec - Shape
Polygon - A polygon shape defined by a list of points (in clockwise order)
- Shape
Rect - A 2D rectangle for shape bounding boxes and reference boxes
Enums§
- CssShape
- Represents a CSS shape for shape-inside, shape-outside, and clip-path. Used for both text layout (shape-inside/outside) and rendering clipping (clip-path).
- Line
Segment VecDestructor - Option
CssShape - Option
Shape Rect - Shape
Point VecDestructor