Struct flo_canvas::Canvas[][src]

pub struct Canvas { /* fields omitted */ }
Expand description

A canvas is an abstract interface for drawing graphics. It doesn’t actually provide a means to render anything, but rather a way to describe how things should be drawn and pass those on to a renderer elsewhere.

A canvas can be cloned and sent between threads, so it’s possible for multiple sources to write to the same drawing target.

Canvases maintain a copy of enough of the drawing instructions sent to them to reproduce the rendering on a new render target.

Implementations

Creates a new, blank, canvas

Sends some new drawing commands to this canvas

Provides a way to draw on this canvas via a GC

Creates a stream for reading the instructions from this canvas

Retrieves the list of drawing actions in this canvas

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.