pub struct CanvasBuilder { /* private fields */ }
Expand description

The type that allows you to build Window-based renderers.

By default, the renderer builder will prioritize for a hardware-accelerated renderer, which is probably what you want.

Implementations

Initializes a new CanvasBuilder.

Builds the renderer.

Sets the index of the rendering driver to initialize. If you desire the first rendering driver to support the flags provided, or if you’re translating code from C which passes -1 for the index, do not invoke the index method.

Set the renderer to a software fallback. This flag is accumulative, and may be specified with other flags.

Set the renderer to use hardware acceleration. This flag is accumulative, and may be specified with other flags.

Synchronize renderer present method calls with the refresh rate. This flag is accumulative, and may be specified with other flags.

Set the renderer to support rendering to a texture. This flag is accumulative, and may be specified with other flags.

Trait Implementations

Converts to this type from the input type.

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.

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.