Struct piet_svg::TextLayout[][src]

pub struct TextLayout;
Expand description

SVG text layout (unimplemented)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The total size of this TextLayout. Read more

The width of this layout, including the width of any trailing whitespace. Read more

Returns a Rect representing the bounding box of the glyphs in this layout, relative to the top-left of the layout object. Read more

Given a line number, return a reference to that line’s underlying string. Read more

Given a line number, return a reference to that line’s metrics, if the line exists. Read more

Returns total number of lines in the text layout. Read more

Given a Point, return a HitTestPoint describing the corresponding text position. Read more

Given a grapheme boundary in the string used to create this TextLayout, return a HitTestPosition object describing the location of that boundary within the layout. Read more

The text used to create this layout.

Returns a vector of Rects that cover the region of the text indicated by range. 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.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.