Expand description
Logical drawing contracts and bounded rectangle/path fill commands.
Re-exports§
pub use crate::shape::Shape;pub use crate::shape::Styled;pub use paint::GradientExtend;pub use paint::GradientSpace;pub use paint::GradientUnits;pub use paint::ImagePattern;pub use paint::LinearGradient;pub use paint::Paint;pub use paint::RadialGradient;pub use paint::SweepGradient;
Modules§
- paint
- Gradient and static image-pattern descriptions.
Structs§
- Canvas
- A bounded command recorder passed to content.
- Draw
Context - Time-independent drawing inputs for the frontend.
- Path
Clip - A checked path used as a coverage mask on an isolated subtree.
- Rect
Clip - A local rectangle whose transformed region intersects ancestor rectangles.
- Shape
Clip - A snapshotted Shape used for geometric intersection, not coverage multiplication.
- Stroke
Style - logical-unit stroke style, with explicit caps, joins and dash geometry.
Enums§
- Blend
Mode - Linear-light layer blending, with explicit compositing space.
- Blend
Space - Color space used for compositing, independent of stored linear pixels.
- Clip
Geometry - Immutable rectangle or path geometry used to intersect geometric clipping domains.
- Clip
Mode - How a subtree clip combines with its geometric ancestors.
- Draw
Command - A fill or isolated-layer boundary; more primitives await their contracts.
- Fill
Rule - How closed contours determine the filled interior.
- LineCap
- Shape of the ends of an open stroke.
- Line
Join - Connection between adjacent stroke segments.
- Mask
Mode - How linear-premultiplied content becomes a layer’s mask coverage.
- Render
Quality - Explicit preview approximation policy. Final preserves production rendering.
Constants§
- MAX_
STROKE_ VERBS - Maximum input verbs in one path/curve stroke expansion.
Traits§
- Drawable
- Content whose bounds and drawing share the same logical coordinates.
Functions§
- validate_
rect - Rejects nonfinite/inverted corners or nonfinite spans; zero-area rectangles are valid.