pub struct CairoRenderContext<'a> { /* private fields */ }

Implementations§

Create a new Cairo back-end.

At the moment, it uses the “toy text API” for text layout, but when we change to a more sophisticated text layout approach, we’ll probably need a factory for that as an additional argument.

Trait Implementations§

The type of a “brush”. Read more
An associated factory for creating text layouts and related resources.
The type use to represent text layout objects.
The associated type of an image.
Report an internal error. Read more
Replace a region of the canvas with the provided Color. Read more
Create a new brush resource. Read more
Create a new gradient brush.
Fill a [Shape], using the non-zero fill rule.
Fill a shape, using the even-odd fill rule.
Clip to a [Shape]. Read more
Stroke a [Shape], using the default StrokeStyle.
Stroke a [Shape], providing a custom StrokeStyle.
Returns a reference to a shared Text object. Read more
Save the context state. Read more
Restore the context state. Read more
Finish any pending operations. Read more
Apply a transform. Read more
Returns the transformations currently applied to the context.
Create a new Image from a pixel buffer. Read more
Draw an Image into the provided [Rect]. Read more
Draw a specified area of an Image. Read more
Create an Image of the specified region of the context. Read more
Draw a rectangle with Gaussian blur. Read more
Do graphics operations with the context state saved and then restored. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.