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 mesh::MAX_MESH_POINTS_PER_AXIS;pub use mesh::MAX_MESH_SUBDIVISIONS;pub use mesh::MeshGradient;pub use mesh::MeshImage;pub use mesh::MeshPaint;pub use mesh::MeshPatch;pub use mesh::MeshVertex;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::PatternImage;pub use paint::RadialGradient;pub use paint::SweepGradient;pub use paint::WeakPatternImage;
Modules§
- mesh
- Mesh gradients with analytic paint descriptors and explicit image baking.
- paint
- Gradient and static image-pattern descriptions.
Structs§
- Atmosphere
Paint - Immutable, admitted atmospheric paint with explicit time and canvas coordinates.
- Atmosphere
Parameters - Editable unvalidated atmospheric parameters; paint construction validates all fields.
- Canvas
- A bounded command recorder passed to content.
- Draw
Context - Drawing inputs for the frontend.
- Evaluation
- Time, quality and explicit resources for one evaluation.
- 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§
- Atmosphere
Kind - Spatial envelope applied to amplitude-normalized Perlin fractal noise.
- 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§
- Deferred
Content - Content that expands into ordinary nodes at the current drawing time.
- Drawable
- Content whose bounds and drawing share the same logical coordinates.
- Into
Shape Clip - Values accepted by
crate::NodeModifiers::clipthat convert to aShapeClip.
Functions§
- validate_
rect - Rejects nonfinite/inverted corners or nonfinite spans; zero-area rectangles are valid.