[−][src]Crate piet
A 2D graphics abstraction.
Re-exports
pub use kurbo; |
Structs
Error | An error that can occur while rendering 2D graphics. |
GradientStop | Specification of a gradient stop. |
LinearGradient | Specification of a linear gradient. |
RadialGradient | Specification of a radial gradient. |
StrokeStyle | Options for drawing stroked lines. |
Enums
Color | A datatype representing color. |
ErrorKind | |
FillRule | A fill rule for resolving winding numbers. |
Gradient | Specification of a gradient. |
ImageFormat | The pixel format for bitmap images. |
InterpolationMode | A requested interpolation mode for drawing images. |
LineCap | Options for the cap of stroked lines. |
LineJoin | Options for angled joins in strokes. |
Traits
Font | |
FontBuilder | |
RenderContext | The main trait for rendering graphics. |
RoundFrom | 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. |
RoundInto | The companion to |
Text | |
TextLayout | |
TextLayoutBuilder |
Functions
new_error | Create a new error of the given kind. |