Struct rokol::fons::FontTextureImpl[][src]

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

We have to give fixed memory location to FontTextureImpl so that fontstash (a C library) can call callback methods.

Implementations

Interface

Copies the shared ownership of Fontstash Returns [x, y, w, h]

Returns [x, y, w, h]

Call it every frame but only once

Methods from Deref<Target = FontStash>

Creates fontstash atlas size copying the previous data

Creates new fontstash atlas with size without copying the previous data

NOTE: DPI scaling?

Horizontal space between characters?

Sets alignment of quadliterals returned with FontStash::text_iter

NOTE: Pixel is in one byte (8 bits alpha channel only)

Iterator of quadliterals aligned with Align

Returns [left_x, top_y, right_x, bottom_y]. Note that it doesn’t handle multiple lines of text. You need custom layer for multi-line text!

Returns [width, height]. Note that it doesn’t handle multiple lines of text. You need custom layer for multi-line text!

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Renderer implementation

Return 1 to represent success.

Creates font texture

Try to double the texture size when the atlas is full

Create new texture Read more

Update texture

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.