Struct fit_text::Scribe[][src]

pub struct Scribe<'a, C, G> {
    pub format: TextFormat,
    pub glyphs: &'a mut C,
    pub transform: Matrix2d,
    pub graphics: &'a mut G,
}
Expand description

A struct for writing text into multiple rectangles

Fields

format: TextFormat

The text format

glyphs: &'a mut C

The character cache

transform: Matrix2d

The transform

graphics: &'a mut G

The graphics abstraction being drawn to

Implementations

Create a new Scribe

Write some text into a rectangle with the Scribe

Write some colored text fragments into a rectangle with the Scribe

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.