pub struct NoRenderer;
Expand description

A dummy renderer. This can be used for executing graphics commands without a graphical backend available.

Trait Implementations

The font type used for rendering text. May be () if text rendering isn’t supported.

Pushes the current transform matrix and clip region onto a stack.

Pops the topmost transform matrix and clip region off the stack and overwrites the current transform matrix with it. Read more

Translates the transform matrix by the given vector.

Updates the clip region to the intersection of the current clip region and the provided rectangle. Initially, the clip region spans the whole window. This only allows for shrinking the clip region in size. The only way to increase its size is to use push() and pop(). Read more

Draws a fill for the provided rectangle, with the given color and corner radius.

Draws an outline for the provided rectangle, with the given color, corner radius, and thickness.

Draws a line from point A to point B, with the given color, cap type, and thickness.

Draws text aligned inside of the provided rectangle, with the given color. 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 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.