Module epaint::text::text_layout
source ยท Structsยง
- FormatSummary ๐
- Paragraph ๐Temporary storage before line-wrapping.
- PointScale ๐Represents GUI scale and convenience methods for rounding to pixels.
- RowBreakCandidates ๐Keeps track of good places to break a long row of text. Will focus primarily on spaces, secondarily on things like
-
Functionsยง
- add_hline ๐
- add_row_backgrounds ๐Create background for glyphs that have them. Creates as few rectangular regions as possible.
- add_row_hline ๐Add a horizontal line over a row of glyphs with a stroke and y decided by a callback.
- format_summary ๐
- galley_from_rows ๐Calculate the Y positions and tessellate the text.
- Horizontally aligned the text on a row.
- is_cjk ๐
- is_cjk_break_allowed ๐
- is_cjk_ideograph ๐
- is_kana ๐
- Layout text into a
Galley
. - layout_section ๐
- line_break ๐
- rect_from_x_range ๐We ignore y at this stage
- Trims the last glyphs in the row and replaces it with an overflow character (e.g.
โฆ
). - rows_from_paragraphs ๐
- tessellate_glyphs ๐
- tessellate_row ๐