[][src]Crate piet

A 2D graphics abstraction.

Structs

Error

An error that can occur while rendering 2D graphics.

StrokeStyle

Options for drawing stroked lines.

Enums

ErrorKind
FillRule

A fill rule for resolving winding numbers.

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 RoundFrom. As with From and Into, a blanket implementation is provided; for the most part, implement RoundFrom.

Text
TextLayout
TextLayoutBuilder

Functions

new_error

Create a new error of the given kind.