A 2D graphics abstraction.
utilities shared by various backends Code useful for multiple backends
Specification of a linear gradient.
Specification of a radial gradient in image-space.
A reference to a font family.
A font weight, represented as a value in the range 1..=1000.
Specification of a gradient stop.
Result of hit testing a point in a
Result of hit testing a text position in a
Metadata about each line in a text layout.
A description of a linear gradient in the unit rect, which can be resolved to a fixed gradient.
A description of a radial gradient in the unit rect, which can be resolved to a fixed gradient.
Options for drawing stroked lines. Most of these are self explanatory, but some aren't.
A representation of a point relative to a unit rectangle.
A datatype representing color.
An error that can occur while rendering 2D graphics.
Any fixed gradient.
The pixel format for bitmap images.
A requested interpolation mode for drawing images.
Options for the cap of stroked lines.
Options for angled joins in strokes.
A color or a gradient.
Mappings from the unit square into a non-square rectangle.
The alignment of text in a
Attributes that can be applied to text.
A flexible, ergonomic way to describe gradient stops.
A trait for various types that can be used as brushes. These include
backend-independent types such
The main trait for rendering graphics.
This is our own implementation of a "lossy From" trait, representing a conversion that can have precision loss. It is essentially adapted from https://github.com/rust-lang/rfcs/pull/2484.
The companion to
The piet text API.
A drawable text object.
A trait for laying out text.