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

Represents a line of text which has been laid out as part of a block.

Implementations

Iterate over the glyphs in this line.

The width (in pixels) of this text line.

The height (in pixels) of this text line. This is equal to the ascent() minus the descent().

The ascent (in pixels) of this text line. This is the maximum height of each glyph above the text baseline.

The descent (in pixels) of this text line. This is the furthest distance of each glyph below the text baseline.

This is negative: a value of -10.0 means the font can descend 10 pixels below the baseline.

The recommended gap to put between each line of text, as encoded by the font authors.

The vertical position of this line’s baseline within the block of text.

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 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.