pub struct Pen<'renderer> { /* private fields */ }
Expand description

A pen controls its color and renders geometries to the renderer.

Implementations§

Constructs a pen from the renderer Renderer.

Returns the renderer that the pen is drawing.

Sets the drawing color.

Returns the drawing color.

Clears all the renderer area.

Returns the current color blend mode.

Sets the color blend mode.

Draws the line.

Draws the lines.

Draw the point.

Draw the points.

Draw the rectangle only lines.

Draw the rectangles only lines.

Draw the filled rectangle.

Draw the filled rectangles.

Trait Implementations§

Formats the value using the given formatter. 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.

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.