Struct bufro::Painter[][src]

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

Object that manages the window and GPU resources

Implementations

Create a new painter with the given window

Scale the transform by the given factor.

Rotate the transform by the given angle.

Translate the transform by the given vector.

Push the current transform onto the stack.

Pop the current transform from the stack.

Reset the transform.

Fill the given text. wrap_limit can be used to limit the amount of characters in a line.

Stroke the given text. wrap_limit can be used to limit the amount of characters in a line.

Resize the canvas.

Draw a rectangle.

Stroke the given path

Fill the given path

Fill a cicle.

Useful for debugging.

Clear all state & GPU buffers.

Flush the current state to the screen.

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.