Skip to main content

Module shape

Module shape 

Source
Expand description

CSS Shape data structures (shape-inside, shape-outside, clip-path). 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§

ShapeCircle
A circle shape defined by center point and radius
ShapeEllipse
An ellipse shape defined by center point and two radii
ShapeInset
An inset rectangle with optional border radius Defined by insets from the reference box edges
ShapePath
An SVG-like path for shape definitions. TODO: path parsing is not yet implemented — data is stored but not interpreted.
ShapePoint
A 2D point for shape coordinates (using f32 for precision)
ShapePointVec
ShapePointVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
ShapePolygon
A polygon shape defined by a list of points (in clockwise order)

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).
OptionCssShape
OptionShapePoint
ShapePointVecDestructor

Type Aliases§

ShapePointVecDestructorType