azul_text_layout

Module text_layout

Source
Expand description

Contains functions for breaking a string into words, calculate the positions of words / lines and do glyph positioning

Structs§

  • Info about what cluster a certain glyph belongs to.
  • Iterator over glyphs that returns information about the cluster that this glyph belongs to. Returned by the ScaledWord::cluster_iter() function.
  • Returns the layouted glyph instances
  • Same as TextLayoutOptions, but with the widths / heights of the PixelValues resolved to regular f32s (because letter_spacing, word_spacing, etc. may be %-based value)
  • Word that is scaled (to a font / font instance), but not yet positioned
  • A paragraph of words that are shaped and scaled (* but not yet layouted / positioned*!) according to their final size in pixels.
  • Layout options that can impact the flow of word positions
  • Section of a certain type
  • Stores the positions of the vertically laid out texts
  • Text broken up into Tab, Word(), Return characters

Enums§

  • Whether the text overflows the parent rectangle, and if yes, by how many pixels, necessary for determining if / how to show a scrollbar + aligning / centering text.
  • Either a white-space delimited word, tab or return character

Constants§

Functions§

Type Aliases§