Module nannou::text::line[][src]

Expand description

Text handling logic related to individual lines of text.

This module is the core of multi-line text handling.

Structs

Information about a single line of text within a &str.

An iterator yielding an Info struct for each line in the given text wrapped by the given next_break_fn.

The type yielded by functions dedicated to finding the next line break.

An iterator yielding a Rect for each line in

An iterator yielding a Rect for each selected line in a block of text.

Enums

The two types of Break indices returned by the WrapIndicesBy iterators.

Functions

Produce an Infos iterator that yields an Info for every line in the given text.

Simplify the retrieval of line information for text that may or may not be wrapped.

Produce an Infos iterator wrapped by the given next_break_fn.

Produce an iterator yielding the bounding Rect for each line in the text.

Produces an iterator yielding a Rect for the selected range in each selected line in a block of text.

Produce the width of the given line of text including spaces (i.e. ’ ’).

Type Definitions

An alias for function pointers that are compatible with the Block’s required text wrapping function.