Struct vger::Vger

source · []
pub struct Vger {
    pub glyph_cache: GlyphCache,
    /* private fields */
}

Fields

glyph_cache: GlyphCache

Implementations

Create a new renderer given a device and output pixel format.

Begin rendering.

Saves rendering state (transform and scissor rect).

Restores rendering state (transform and scissor rect).

Encode all rendering to a command buffer.

Fills a circle.

Strokes an arc.

Fills a rectangle.

Strokes a rectangle.

Strokes a line segment.

Strokes a quadratic bezier segment.

Move the pen to a point (path fills only)

Makes a quadratic curve to a point (path fills only)

Fills a path.

Renders text.

Calculates the bounds for text.

Returns local coordinates of glyphs.

Translates the coordinate system.

Scales the coordinate system.

Rotates the coordinate system.

Gets the current transform.

Sets the current scissor rect.

Resets the current scissor rect.

Solid color paint.

Linear gradient paint.

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.