pub struct TextOptions { /* private fields */ }
Expand description

A series of options for specifying how text should be laid out.

Implementations

Instantiates a new TextOptions with the default settings.

Sets the tracking of the font. This is the amount of extra space (in pixels) to put between each character.

The default is 0.0.

Limits the width of the text block to the specified pixel value, wrapping words to a new line if they exceed that limit.

This function also sets the alignment, within the specified width.

The default is to not wrap text.

Sets the amount of space between each line of text. The gap between the baseline of each line of text is multiplied by this value.

The default is 1.0.

Trait Implementations

Returns the “default value” for a 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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.