pub struct SVGBackend<'a> { /* private fields */ }
Expand description

The SVG image drawing backend

Implementations

Create a new SVG drawing backend

Create a new SVG drawing backend and store the document into a String buffer

Trait Implementations

The error type reported by the backend
Get the dimension of the drawing backend in pixels
Ensure the backend is ready to draw
Finalize the drawing step and present all the changes. This is used as the real-time rendering support. The backend may implement in the following way, when ensure_prepared is called it checks if it needs a fresh buffer and present is called rendering all the pending changes on the screen. Read more
Draw a pixel on the drawing backend Read more
Draw a line on the drawing backend Read more
Draw a rectangle on the drawing backend Read more
Draw a path on the drawing backend Read more
Draw a circle on the drawing backend Read more
Draw a text on the drawing backend Read more
Estimate the size of the horizontal text if rendered on this backend. This is important because some of the backend may not have font ability. Thus this allows those backend reports proper value rather than ask the font rasterizer for that. Read more
Blit a bitmap on to the backend. Read more
Executes the destructor for this type. 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.

Convert the type into a root drawing area
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.